mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02: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);
|
updatewmhints(c);
|
||||||
if (!c->neverfocus)
|
if (!c->neverfocus)
|
||||||
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
|
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]);
|
sendevent(c, wmatom[WMTakeFocus]);
|
||||||
|
#endif // BAR_SYSTRAY_PATCH
|
||||||
|
|
||||||
free(c);
|
free(c);
|
||||||
unmanaged = 0;
|
unmanaged = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user