diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-08-08 14:33:03 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-08-08 14:33:03 -0600 |
commit | bb21ecda30e041fb957eca42947e093758cdf75a (patch) | |
tree | 0168f396f8832625ada7c89257405bc60f9ee558 /dwl.c | |
parent | b25717c9396d2fc040b8c3df75288b3de72971ea (diff) | |
download | dwl-bb21ecda30e041fb957eca42947e093758cdf75a.tar.gz |
improve checking in configurex11()
this avoids a client resizing itself when the user is interactively resizing
the client
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -638,6 +638,7 @@ buttonpress(struct wl_listener *listener, void *data) /* Drop the window off on its new monitor */ selmon = xytomon(cursor->x, cursor->y); setmon(grabc, selmon, 0); + grabc = NULL; return; } else { cursor_mode = CurNormal; @@ -3090,7 +3091,7 @@ configurex11(struct wl_listener *listener, void *data) event->x, event->y, event->width, event->height); 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, .width = event->width + c->bw * 2, .height = event->height + c->bw * 2}, 0); else |