few small changes to systray toggle

This commit is contained in:
speedie 2022-12-07 19:15:25 +01:00
parent 89b757e682
commit b2d20dc7a5
2 changed files with 6 additions and 11 deletions

View file

@ -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;

View file

@ -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