Philipp Hörist pushed to branch gajim_1.3 at gajim / gajim


Commits:
2c41eee1 by lovetox at 2021-03-01T16:27:32+01:00
StatusIcon: Only hide application when its focused

- - - - -


1 changed file:

- gajim/gtk/statusicon.py


Changes:

=====================================
gajim/gtk/statusicon.py
=====================================
@@ -314,10 +314,9 @@ def _on_left_click(self):
         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)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/2c41eee113255731660ae6beacdb0c0d090f1347

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/2c41eee113255731660ae6beacdb0c0d090f1347
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to