diff options
author | lovetox <philipp@hoerist.com> | 2021-03-01 18:26:37 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2021-03-01 18:27:32 +0300 |
commit | 2c41eee113255731660ae6beacdb0c0d090f1347 (patch) | |
tree | cf6b01ddf292aea22a8e9d11b901b2765cd55291 | |
parent | 59c8a4de261a0de4bdf519d596c16dd00518e398 (diff) |
StatusIcon: Only hide application when its focused
-rw-r--r-- | gajim/gtk/statusicon.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gajim/gtk/statusicon.py b/gajim/gtk/statusicon.py index 629979ff0..7a0f4ecf2 100644 --- a/gajim/gtk/statusicon.py +++ b/gajim/gtk/statusicon.py @@ -314,10 +314,9 @@ class StatusIcon: win = app.interface.roster.window if not app.events.get_systray_events(): # No pending events, so toggle visible/hidden for roster window - if win.get_property('visible'): - if win.get_property('has-toplevel-focus') or os.name == 'nt': - save_roster_position(win) - win.hide() # else we hide it from VD that was visible in + if win.get_property('has-toplevel-focus'): + save_roster_position(win) + win.hide() else: win.show_all() restore_roster_position(win) |