Permalink
Browse files

Linux: Fix Unity global menu bar stops working after minimizing calib…

…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...
1 parent d372ffa commit 085809422605b410f9571bdfc51b18884c4fa502 @kovidgoyal committed Nov 5, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/calibre/gui2/dbus_export/widgets.py
@@ -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

0 comments on commit 0858094

Please sign in to comment.