[OlegOAndreev] don't popup window when we get a message ifchat window has focus. Fixes #23

This commit is contained in:
Yann Leboulanger
2012-06-17 21:44:35 +02:00
parent 81100bb808
commit 6fa92ab8c5

View File

@@ -138,7 +138,7 @@ class Triggers(GajimPlugin):
obj.sound_event = ''
obj.sound_file = rule['sound_file']
if rule['popup'] == 'no':
if rule['popup'] == 'no' or obj.control_focused:
obj.do_popup = False
elif rule['popup'] == 'yes':
obj.do_popup = True