few small changes to systray toggle
This commit is contained in:
parent
89b757e682
commit
b2d20dc7a5
|
@ -22,6 +22,8 @@ draw_systray(Bar *bar, BarDrawArg *a)
|
|||
if (selmon->hidesystray) {
|
||||
if (systray)
|
||||
XMoveWindow(dpy, systray->win, -500, bar->by);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
XSetWindowAttributes wa;
|
||||
|
|
15
speedwm.c
15
speedwm.c
|
@ -5495,22 +5495,15 @@ togglebar(const Arg *arg)
|
|||
void
|
||||
togglesystray(const Arg *arg)
|
||||
{
|
||||
Bar *bar;
|
||||
Client *c;
|
||||
|
||||
selmon->hidesystray = !selmon->hidesystray;
|
||||
|
||||
|
||||
/*
|
||||
if (selmon->hidesystray) {
|
||||
if (selmon->hidesystray)
|
||||
removesystrayicon(systray->icons);
|
||||
//XUnmapWindow(dpy, systray->win);
|
||||
//XDestroyWindow(dpy, systray->win);
|
||||
free(systray);
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
||||
updatebarpos(selmon);
|
||||
arrange(selmon);
|
||||
updatestatus();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue