X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint.c;h=502c7b1812670159cb688471b6e8f06481c21582;hb=14bb7c359cd5d07fb27cd36f6dae19991bb6836f;hp=0b9a7197a0e19239a3fc2cd599293ad33d5227a0;hpb=4cd6c50e7ba964a921db9e9f8c29b734e2e3c729;p=chaz%2Ftint2 diff --git a/src/tint.c b/src/tint.c index 0b9a719..502c7b1 100644 --- a/src/tint.c +++ b/src/tint.c @@ -677,13 +677,6 @@ int main (int argc, char *argv[]) if (panel_refresh) { panel_refresh = 0; - // QUESTION: do we need this first refresh_systray, because we check refresh_systray once again later... - // ANSWER: yes, panel->temp_pmap is freeded in the loop. - // we change background to None to avoid tray icon using freeded pixmap. - if (refresh_systray) { - panel = (Panel*)systray.area.panel; - XSetWindowBackgroundPixmap (server.dsp, panel->main_win, None); - } for (i=0 ; i < nb_panel ; i++) { panel = &panel1[i]; @@ -799,7 +792,7 @@ int main (int argc, char *argv[]) break; case ClientMessage: - ev = &e; + ev = &e.xclient; if (ev->data.l[1] == server.atom._NET_WM_CM_S0) { if (ev->data.l[2] == None) // TODO: Stop real_transparency