mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-01-14 21:07: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)
|
activatex11(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
Client *c = wl_container_of(listener, c, activate);
|
Client *c = wl_container_of(listener, c, activate);
|
||||||
|
Client *sel = focustop(selmon);
|
||||||
|
|
||||||
/* Only "managed" windows can be activated */
|
if ((!c->surface.xwayland->surface || !c->surface.xwayland->surface->mapped)
|
||||||
if (c->type == X11Managed)
|
|| (sel && sel->type != XDGShell && sel->surface.xwayland->pid != c->surface.xwayland->pid))
|
||||||
wlr_xwayland_surface_activate(c->surface.xwayland, 1);
|
return;
|
||||||
|
|
||||||
|
focusclient(c, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue