mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
systray: hotplugging issues, keep systray window on top of bar window ref. #84
This commit is contained in:
parent
93e2544040
commit
acbf2de1c2
@ -20,6 +20,7 @@ draw_systray(Bar *bar, BarArg *a)
|
||||
return 0;
|
||||
|
||||
XSetWindowAttributes wa;
|
||||
XWindowChanges wc;
|
||||
Client *i;
|
||||
unsigned int w;
|
||||
|
||||
@ -68,6 +69,10 @@ draw_systray(Bar *bar, BarArg *a)
|
||||
|
||||
systray->bar = bar;
|
||||
|
||||
wc.stack_mode = Above;
|
||||
wc.sibling = bar->win;
|
||||
XConfigureWindow(dpy, systray->win, CWSibling|CWStackMode, &wc);
|
||||
|
||||
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||
for (w = 0, i = systray->icons; i; i = i->next) {
|
||||
#if BAR_ALPHA_PATCH
|
||||
|
Loading…
Reference in New Issue
Block a user