mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-01-14 12:57:28 -08:00
WIP: don't use reaper
This commit is contained in:
parent
992a832143
commit
7180724502
1 changed files with 6 additions and 3 deletions
9
dwl.c
9
dwl.c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue