Ticket #73157: XQuartz-430-00.patch
| File XQuartz-430-00.patch, 2.3 KB (added by msliczniak, 4 months ago) |
|---|
-
(a) - vs. (b) xorg-server/Portfile
a b 83 83 # doesn't complain about subdirectory *.in replacement files usage. 84 84 patchfiles-append 2001-enable-automake-subdir-objects.patch 85 85 86 # LSUIPresentationMode -> UIPresentationMode mapping became wonky at 87 # some point. Use NSPresentation* directly to set a kiosk mode which auto 88 # shows/hides menubar, dock, etc. At some point after Monterey 89 # NSApp.mainMenu.menuBarHeight reported the height of the menubar should 90 # it appear even if it was hidden. 91 # https://github.com/XQuartz/XQuartz/issues/430 92 patchfiles-append kiosk.diff 93 86 94 patch.pre_args-replace -p0 -p1 87 95 88 96 use_autoreconf yes … … 99 107 } 100 108 101 109 platform macosx { 102 if {${os.major} < 15} {110 if {${os.major} < 22} { 103 111 known_fail yes 104 112 pre-fetch { 105 ui_error "$name requires macOS 1 0.11or later. Please use the xorg-server-legacy port instead."113 ui_error "$name requires macOS 13 or later. Please use the xorg-server-legacy port instead." 106 114 error "unsupported OS version" 107 115 } 108 116 } -
(a) - vs. (b) xorg-server/files/kiosk.diff
a b 1 --- - 2021-04-23 04:21:24 2 +++ XQuartz-xorg-server-93a0f39/hw/xquartz/bundle/Info.plist.cpp 2025-10-22 16:47:20 3 @@ -38,6 +38,10 @@ 4 #endif 5 <key>LSApplicationCategoryType</key> 6 <string>public.app-category.utilities</string> 7 + <key>UIPresentationMode</key> 8 + <string>Suppressed</string> 9 + <key>UIPresentationOptions</key> 10 + <integer>3077</integer> 11 <key>NSHumanReadableCopyright</key> 12 <string>© 2003-2021 Apple Inc. 13 © 2003 XFree86 Project, Inc. 14 --- - 2021-04-23 04:21:24 15 +++ XQuartz-xorg-server-93a0f39/hw/xquartz/X11Application.m 2025-10-22 16:50:13 16 @@ -1151,13 +1151,6 @@ 17 */ 18 QuartzModeBundleInit(); 19 20 - /* Calculate the height of the menubar so we can avoid it. */ 21 - aquaMenuBarHeight = NSApp.mainMenu.menuBarHeight; 22 - if (!aquaMenuBarHeight) { 23 - NSScreen* primaryScreen = NSScreen.screens[0]; 24 - aquaMenuBarHeight = NSHeight(primaryScreen.frame) - NSMaxY(primaryScreen.visibleFrame); 25 - } 26 - 27 eventTranslationQueue = dispatch_queue_create(BUNDLE_ID_PREFIX ".X11.NSEventsToX11EventsQueue", NULL); 28 assert(eventTranslationQueue != NULL); 29
