mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
configurex11: resize floating clients and arrange tiled clients' monitor
This commit is contained in:
parent
972e3f3050
commit
88d386bfdc
1 changed files with 7 additions and 2 deletions
9
dwl.c
9
dwl.c
|
@ -2486,8 +2486,13 @@ configurex11(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
Client *c = wl_container_of(listener, c, configure);
|
Client *c = wl_container_of(listener, c, configure);
|
||||||
struct wlr_xwayland_surface_configure_event *event = data;
|
struct wlr_xwayland_surface_configure_event *event = data;
|
||||||
wlr_xwayland_surface_configure(c->surface.xwayland,
|
if (!c->mon)
|
||||||
event->x, event->y, event->width, event->height);
|
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
|
void
|
||||||
|
|
Loading…
Reference in a new issue