Skip to content

Commit 45d0fe1

Browse files
authored
fix duplicated tray icons after slow reloading of some X window manager (#765)
A workaround to fix #764 . The embedded status can keep false for a while during reloading of some X window manager (system tray included). The every-10-sec icon status checking may hit this time slice and create duplicated tray icons.
1 parent e0bf4ae commit 45d0fe1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/shutter

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,9 @@ sub STARTUP {
778778
fct_try_init_tray();
779779
Glib::Timeout->add(10000, sub {
780780
if (!$tray_legacy || !$tray_legacy->is_embedded) {
781+
if ($tray_legacy) {
782+
$tray_legacy->set_visible(0);
783+
}
781784
fct_try_init_tray();
782785
}
783786
return TRUE;

0 commit comments

Comments
 (0)