improve checking in configurex11()
this avoids a client resizing itself when the user is interactively resizing the client
This commit is contained in:
parent
b25717c939
commit
bb21ecda30
3
dwl.c
3
dwl.c
|
@ -638,6 +638,7 @@ buttonpress(struct wl_listener *listener, void *data)
|
||||||
/* Drop the window off on its new monitor */
|
/* Drop the window off on its new monitor */
|
||||||
selmon = xytomon(cursor->x, cursor->y);
|
selmon = xytomon(cursor->x, cursor->y);
|
||||||
setmon(grabc, selmon, 0);
|
setmon(grabc, selmon, 0);
|
||||||
|
grabc = NULL;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
cursor_mode = CurNormal;
|
cursor_mode = CurNormal;
|
||||||
|
@ -3090,7 +3091,7 @@ configurex11(struct wl_listener *listener, void *data)
|
||||||
event->x, event->y, event->width, event->height);
|
event->x, event->y, event->width, event->height);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (c->isfloating)
|
if ((c->isfloating && c != grabc) || !c->mon->lt[c->mon->sellt]->arrange)
|
||||||
resize(c, (struct wlr_box){.x = event->x, .y = event->y,
|
resize(c, (struct wlr_box){.x = event->x, .y = event->y,
|
||||||
.width = event->width + c->bw * 2, .height = event->height + c->bw * 2}, 0);
|
.width = event->width + c->bw * 2, .height = event->height + c->bw * 2}, 0);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue