mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
holdbar + systray compatibility - make systray follow the bar when being revealed and hidden ref. #239
This commit is contained in:
parent
adc05c2332
commit
da5e69c4a7
@ -8,6 +8,7 @@ holdbar(const Arg *arg)
|
|||||||
updatebarpos(selmon);
|
updatebarpos(selmon);
|
||||||
for (bar = selmon->bar; bar; bar = bar->next)
|
for (bar = selmon->bar; bar; bar = bar->next)
|
||||||
XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh);
|
XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh);
|
||||||
|
drawbar(selmon);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -29,6 +30,10 @@ keyrelease(XEvent *e)
|
|||||||
updatebarpos(selmon);
|
updatebarpos(selmon);
|
||||||
for (bar = selmon->bar; bar; bar = bar->next)
|
for (bar = selmon->bar; bar; bar = bar->next)
|
||||||
XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh);
|
XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh);
|
||||||
|
#if BAR_SYSTRAY_PATCH
|
||||||
|
if (!selmon->showbar && systray)
|
||||||
|
XMoveWindow(dpy, systray->win, -32000, -32000);
|
||||||
|
#endif // BAR_SYSTRAY_PATCH
|
||||||
arrange(selmon);
|
arrange(selmon);
|
||||||
}
|
}
|
||||||
#if COMBO_PATCH
|
#if COMBO_PATCH
|
||||||
|
@ -20,9 +20,6 @@
|
|||||||
#if COMBO_PATCH
|
#if COMBO_PATCH
|
||||||
#include "combo.c"
|
#include "combo.c"
|
||||||
#endif
|
#endif
|
||||||
#if BAR_HOLDBAR_PATCH
|
|
||||||
#include "bar_holdbar.c"
|
|
||||||
#endif
|
|
||||||
#if BAR_LTSYMBOL_PATCH
|
#if BAR_LTSYMBOL_PATCH
|
||||||
#include "bar_ltsymbol.c"
|
#include "bar_ltsymbol.c"
|
||||||
#endif
|
#endif
|
||||||
@ -83,6 +80,9 @@
|
|||||||
#if BAR_SYSTRAY_PATCH
|
#if BAR_SYSTRAY_PATCH
|
||||||
#include "bar_systray.c"
|
#include "bar_systray.c"
|
||||||
#endif
|
#endif
|
||||||
|
#if BAR_HOLDBAR_PATCH
|
||||||
|
#include "bar_holdbar.c"
|
||||||
|
#endif
|
||||||
#if BAR_VTCOLORS_PATCH
|
#if BAR_VTCOLORS_PATCH
|
||||||
#include "bar_vtcolors.c"
|
#include "bar_vtcolors.c"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user