aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-11-12 20:05:56 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-11-21 14:27:57 -0600
commit88d386bfdcedb8b46d7c4c7a3ebac2476cfcf46b (patch)
tree83679d0c4709db7b6f10b566acca2ce7ee299b22
parent972e3f3050be85ab324ea1216f545871efe07d1e (diff)
configurex11: resize floating clients and arrange tiled clients' monitor
-rw-r--r--dwl.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 3bf5cdc..2903d9d 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2486,8 +2486,13 @@ configurex11(struct wl_listener *listener, void *data)
{
Client *c = wl_container_of(listener, c, configure);
struct wlr_xwayland_surface_configure_event *event = data;
- wlr_xwayland_surface_configure(c->surface.xwayland,
- event->x, event->y, event->width, event->height);
+ if (!c->mon)
+ return;
+ if (c->isfloating || c->type == X11Unmanaged)
+ resize(c, (struct wlr_box){.x = event->x, .y = event->y,
+ .width = event->width, .height = event->height}, 0);
+ else
+ arrange(c->mon);
}
void