systray + unmanaged: fixed compatibility issue

This commit is contained in:
bakkeby 2023-09-22 18:05:25 +02:00
parent 7849eaa08b
commit 5865c68c0e

4
dwm.c
View File

@ -2522,7 +2522,11 @@ manage(Window w, XWindowAttributes *wa)
updatewmhints(c);
if (!c->neverfocus)
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
#if BAR_SYSTRAY_PATCH
sendevent(c->win, wmatom[WMTakeFocus], NoEventMask, wmatom[WMTakeFocus], CurrentTime, 0, 0, 0);
#else
sendevent(c, wmatom[WMTakeFocus]);
#endif // BAR_SYSTRAY_PATCH
free(c);
unmanaged = 0;