diff options
| author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-08-08 14:19:39 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-08-08 14:19:39 -0600 | 
| commit | b25717c9396d2fc040b8c3df75288b3de72971ea (patch) | |
| tree | d58c1a9fbaf4d80558ef9c4d3024536ffb8d7090 /dwl.c | |
| parent | a4fa9546166c9af277616dd6dcd80e61ee024eb3 (diff) | |
drop a useless check in configurex11()
Diffstat (limited to '')
| -rw-r--r-- | dwl.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| @@ -3083,13 +3083,14 @@ configurex11(struct wl_listener *listener, void *data)  {  	Client *c = wl_container_of(listener, c, configure);  	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) {  		wlr_xwayland_surface_configure(c->surface.xwayland,  				event->x, event->y, event->width, event->height);  		return;  	} -	if (c->isfloating || client_is_unmanaged(c)) +	if (c->isfloating)  		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 | 
