~ruther/dwl

88d386bfdcedb8b46d7c4c7a3ebac2476cfcf46b — Leonardo Hernández Hernández 2 years ago 972e3f3
configurex11: resize floating clients and arrange tiled clients' monitor
1 files changed, 7 insertions(+), 2 deletions(-)

M dwl.c
M dwl.c => dwl.c +7 -2
@@ 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

Do not follow this link