From 47e3fd3ddcfe74f0baf81f48e8d2b0ad823c165c Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 6 Jun 2005 22:51:10 +0000 Subject: [PATCH] applying a patch by alfudio [sorry if wrong nick] --- src/systray.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/systray.py b/src/systray.py index 8a4eb00f6..5911e1821 100644 --- a/src/systray.py +++ b/src/systray.py @@ -220,6 +220,11 @@ class Systray: self.plugin.roster.contacts[account][jid][0], account) acc['chats'][jid].set_active_tab(jid) acc['chats'][jid].window.present() + if event.button == 2: # middle click + if win.flags() & gtk.VISIBLE: + self.plugin.roster.window.hide() + else: + self.plugin.roster.window.present() if event.button == 3: # right click self.make_menu(event)