systray + unmanaged: fixed compatibility issue

pull/380/head
bakkeby 8 months ago
parent 7849eaa08b
commit 5865c68c0e

@ -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;

Loading…
Cancel
Save