Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2021-03-01 18:26:37 +0300
committerlovetox <philipp@hoerist.com>2021-03-01 18:27:32 +0300
commit2c41eee113255731660ae6beacdb0c0d090f1347 (patch)
treecf6b01ddf292aea22a8e9d11b901b2765cd55291
parent59c8a4de261a0de4bdf519d596c16dd00518e398 (diff)
StatusIcon: Only hide application when its focused
-rw-r--r--gajim/gtk/statusicon.py7
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)