Skip to content

Commit

Permalink
Linux: Fix Unity global menu bar stops working after minimizing calib…
Browse files Browse the repository at this point in the history
…re to the dock or the system tray. Fixes #1389404 [ubuntu unity global menu stops working with system tray icon](https://bugs.launchpad.net/calibre/+bug/1389404)
  • Loading branch information
kovidgoyal committed Nov 5, 2014
1 parent d372ffa commit 0858094
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/calibre/gui2/dbus_export/widgets.py
Expand Up @@ -107,7 +107,11 @@ def eventFilter(self, obj, ev):
# self._block()
# elif etype == QEvent.WindowUnblocked:
# self._unblock()
if etype == QEvent.WinIdChange:
if etype == QEvent.Show:
# Hiding a window causes the registrar to auto-unregister it, so we
# have to re-register it on show events.
self.register()
elif etype == QEvent.WinIdChange:
self.unregister()
self.register()
return False
Expand Down

0 comments on commit 0858094

Please sign in to comment.