From b48718a8d1a6982434c8246634ddc2a8e82c58ba Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 26 Nov 2005 14:39:27 +0000 Subject: [PATCH] [multani] when right/middle click on the old popup window, destroy it --- src/dialogs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dialogs.py b/src/dialogs.py index f56110a18..14e44b47d 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -903,6 +903,9 @@ class PopupNotificationWindow: gtk.gdk.screen_height() - gajim.interface.roster.popups_notification_height) def on_popup_notification_window_button_press_event(self, widget, event): + if event.button != 1: + self.window.destroy() + return # use Contact class, new_chat expects it that way # is it in the roster? if gajim.contacts[self.account].has_key(self.jid):