all repos — tint2 @ 61f0a4ec852677851af91a6c05eef67d3818733a

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

systray: remove icon when reparented away from us
o9000 o9000
commit

61f0a4ec852677851af91a6c05eef67d3818733a

parent

c606a1a35a93c9482dee7fed595c9572f56cfc87

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

jump to
M src/tint.csrc/tint.c

@@ -1291,16 +1291,15 @@ fprintf(stderr, "ReparentNotify\n");

if (!systray_enabled) break; panel = (Panel*)systray.area.panel; - if (e.xany.window == panel->main_win) // reparented to us + if (e.xany.window == panel->main_win) // don't care break; - // FIXME: 'reparent to us' badly detected => disabled for (it = systray.list_icons; it; it = g_slist_next(it)) { TrayWindow *traywin = (TrayWindow*)it->data; if (traywin->win == e.xreparent.window) { - fprintf(stderr, "win\n"); if (traywin->parent == e.xreparent.parent) { - fprintf(stderr, "parent\n"); embed_icon(traywin); + } else { + remove_icon(traywin); } break; }