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  
    8383# doesn't complain about subdirectory *.in replacement files usage.
    8484patchfiles-append 2001-enable-automake-subdir-objects.patch
    8585
     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
     92patchfiles-append kiosk.diff
     93
    8694patch.pre_args-replace  -p0 -p1
    8795
    8896use_autoreconf yes
     
    99107}
    100108
    101109platform macosx {
    102     if {${os.major} < 15} {
     110    if {${os.major} < 22} {
    103111        known_fail  yes
    104112        pre-fetch {
    105             ui_error "$name requires macOS 10.11 or 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."
    106114            error "unsupported OS version"
    107115        }
    108116    }
  • (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