X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint.c;h=df1c58912cd94880b37ccbade2d005f738f38afe;hb=037457ddf26113ffbbc9012b453fcba6dd652de8;hp=fef466a279401b5bc723dbc3ac45dcaa0fc72495;hpb=6f44852e0de01282bc6f347c1d28d1f3f6bdaf20;p=chaz%2Ftint2 diff --git a/src/tint.c b/src/tint.c index fef466a..df1c589 100644 --- a/src/tint.c +++ b/src/tint.c @@ -694,7 +694,7 @@ int main (int argc, char *argv[]) XFlush (server.dsp); panel = (Panel*)systray.area.panel; - if (refresh_systray && !panel->is_hidden) { + if (refresh_systray && panel && !panel->is_hidden) { refresh_systray = 0; // tint2 doen't draw systray icons. it just redraw background. XSetWindowBackgroundPixmap (server.dsp, panel->main_win, panel->temp_pmap);