systray: Make sure we redraw the panel when rendering icons
o9000 o9000
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/systray/systraybar.c
→
src/systray/systraybar.c
@@ -813,6 +813,8 @@ // However this triggers a resize loop in new versions of GTK, which we must avoid.
// 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 @@ panel->area.resize = 1;
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);