]> Dogcows Code - chaz/tint2/blobdiff - src/tint.c
*fix* issue 217
[chaz/tint2] / src / tint.c
index 502c7b1812670159cb688471b6e8f06481c21582..df1c58912cd94880b37ccbade2d005f738f38afe 100644 (file)
@@ -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);
@@ -821,7 +821,7 @@ int main (int argc, char *argv[])
                                                        XDamageNotifyEvent* de = &event_union.de;
                                                        for (l = systray.list_icons; l ; l = l->next) {
                                                                traywin = (TrayWindow*)l->data;
-                                                               if ( traywin->id == de->drawable && !de->more ) {
+                                                               if ( traywin->id == de->drawable ) {
                                                                        systray_render_icon(traywin);
                                                                        break;
                                                                }
This page took 0.02548 seconds and 4 git commands to generate.