all repos — tint2 @ 712097ba45b1296012eab633ace5b1bd4d19bbd4

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

systray: Make sure we redraw the panel when rendering icons
o9000 o9000
commit

712097ba45b1296012eab633ace5b1bd4d19bbd4

parent

9a5cb749ed576623843b6abc28bdcc858575ebdd

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/systray/systraybar.csrc/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);