mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-10 19:10:48 +00:00
systray + unmanaged: fixed compatibility issue
This commit is contained in:
parent
7849eaa08b
commit
5865c68c0e
4
dwm.c
4
dwm.c
@ -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…
Reference in New Issue
Block a user