From 712097ba45b1296012eab633ace5b1bd4d19bbd4 Mon Sep 17 00:00:00 2001 From: o9000 Date: Thu, 16 Jul 2015 14:01:57 +0200 Subject: [PATCH] systray: Make sure we redraw the panel when rendering icons --- src/systray/systraybar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index 60d1ebf..c4b9dd5 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -813,6 +813,8 @@ void systray_reconfigure_event(TrayWindow *traywin, XEvent *e) // if (systray_profile) // fprintf(stderr, "XMoveResizeWindow(server.dsp, traywin->win = %ld, 0, 0, traywin->width = %d, traywin->height = %d)\n", traywin->win, traywin->width, traywin->height); // XMoveResizeWindow(server.dsp, traywin->win, 0, 0, traywin->width, traywin->height); + stop_timeout(traywin->render_timeout); + traywin->render_timeout = add_timeout(min_refresh_period, 0, systray_render_icon, traywin, &traywin->render_timeout); } } @@ -1002,6 +1004,7 @@ void systray_render_icon_composited(void* t) panel_refresh = 1; refresh_systray = 1; } + panel_refresh = 1; if (systray_profile) fprintf(stderr, "[%f] %s:%d win = %lu (%s)\n", profiling_get_time(), __FUNCTION__, __LINE__, traywin->win, traywin->name);