WIP: don't use reaper

This commit is contained in:
Leonardo Hernández Hernández 2023-08-18 21:36:26 -06:00
parent 992a832143
commit 7180724502
No known key found for this signature in database
GPG key ID: E538897EE11B9624

9
dwl.c
View file

@ -2730,10 +2730,13 @@ void
activatex11(struct wl_listener *listener, void *data)
{
Client *c = wl_container_of(listener, c, activate);
Client *sel = focustop(selmon);
/* Only "managed" windows can be activated */
if (c->type == X11Managed)
wlr_xwayland_surface_activate(c->surface.xwayland, 1);
if ((!c->surface.xwayland->surface || !c->surface.xwayland->surface->mapped)
|| (sel && sel->type != XDGShell && sel->surface.xwayland->pid != c->surface.xwayland->pid))
return;
focusclient(c, 1);
}
void