0002-qtbase-Don-t-show-the-menu-bar-at-all-in-lion-style-fullscr.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. From d04cee1adfd944d724c4b8777638c9319f53f443 Mon Sep 17 00:00:00 2001
  2. From: Jocelyn Turcotte <jturcotte@woboq.com>
  3. Date: Thu, 23 Jul 2015 11:56:37 +0200
  4. Subject: [PATCH] Don't show the menu bar at all in lion-style fullscreen
  5. This works around a bug in OSX where the menubar could
  6. appear and not go away when losing the connection to a
  7. single main display, which triggers the menu bar to be resized.
  8. ---
  9. qtbase/src/plugins/platforms/cocoa/qnswindowdelegate.mm | 3 +++
  10. 1 file changed, 3 insertions(+)
  11. diff --git a/qtbase/src/plugins/platforms/cocoa/qnswindowdelegate.mm b/qtbase/src/plugins/platforms/cocoa/qnswindowdelegate.mm
  12. index 015274c..37a481a 100644
  13. --- a/qtbase/src/plugins/platforms/cocoa/qnswindowdelegate.mm
  14. +++ b/qtbase/src/plugins/platforms/cocoa/qnswindowdelegate.mm
  15. @@ -109,4 +109,7 @@
  16. return YES;
  17. }
  18. +- (NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions {
  19. + return NSApplicationPresentationFullScreen | NSApplicationPresentationHideMenuBar | NSApplicationPresentationHideDock;
  20. +}
  21. @end
  22. --
  23. 2.3.3