drop a useless check in configurex11()

This commit is contained in:
Leonardo Hernández Hernández 2024-08-08 14:19:39 -06:00
parent a4fa954616
commit b25717c939
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

5
dwl.c
View File

@ -3083,13 +3083,14 @@ 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;
/* TODO: figure out if there is another way to do this */ /* This also handles "unmanaged" clients (because we do not assign
* them a monitor) */
if (!c->mon) { if (!c->mon) {
wlr_xwayland_surface_configure(c->surface.xwayland, wlr_xwayland_surface_configure(c->surface.xwayland,
event->x, event->y, event->width, event->height); event->x, event->y, event->width, event->height);
return; return;
} }
if (c->isfloating || client_is_unmanaged(c)) if (c->isfloating)
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