present() may or may not deiconify. and in Windows Window Manager it does not, so force that

This commit is contained in:
Nikos Kouremenos 2006-11-20 13:41:53 +00:00
parent ee390174d2
commit 73157a4c65
1 changed files with 4 additions and 0 deletions

View File

@ -278,6 +278,10 @@ class Systray:
if not gtkgui_helpers.possibly_move_window_in_current_desktop(win): if not gtkgui_helpers.possibly_move_window_in_current_desktop(win):
win.hide() # else we hide it from VD that was visible in win.hide() # else we hide it from VD that was visible in
else: else:
# in Windows (perhaps other Window Managers too) minimize state
# is remembered, so make sure it's not minimized (iconified)
# because user wants to see roster
win.deiconify()
win.present() win.present()
else: else:
self.handle_first_event() self.handle_first_event()