mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 13:04:11 +01:00
Fix tiled containers resize with mouse
Fixes regression introduced in 2c1a11016c
This commit is contained in:
parent
06fcebc542
commit
43bd8dc437
@ -59,7 +59,7 @@ static bool edge_is_external(struct sway_container *cont, enum wlr_edges edge) {
|
|||||||
|
|
||||||
static enum wlr_edges find_edge(struct sway_container *cont,
|
static enum wlr_edges find_edge(struct sway_container *cont,
|
||||||
struct wlr_surface *surface, struct sway_cursor *cursor) {
|
struct wlr_surface *surface, struct sway_cursor *cursor) {
|
||||||
if (!cont->view || cont->view->surface != surface) {
|
if (!cont->view || (surface && cont->view->surface != surface)) {
|
||||||
return WLR_EDGE_NONE;
|
return WLR_EDGE_NONE;
|
||||||
}
|
}
|
||||||
if (cont->border == B_NONE || !cont->border_thickness ||
|
if (cont->border == B_NONE || !cont->border_thickness ||
|
||||||
|
Loading…
Reference in New Issue
Block a user