On Mac, wxWidgets applications initially not shown till mouse moved or keyboard pressed (Issue #26095)

40 views
Skip to first unread message

Henk Demper

unread,
Jan 12, 2026, 12:15:29 PM (2 days ago) Jan 12
to wx-...@googlegroups.com, Subscribed
HenkDemper created an issue (wxWidgets/wxWidgets#26095)
  • Using latest git master build 8ada351 on latest macOS Tahoe 26.2
  • Build (ARM) for Mac both make & CMake, both Debug & Release (4 sets)
  • I experience below with both most sample applications (for instance try auidemo.app) and my own application
  • Open sample application like auidemo.app by either keyboard Cmd-O or double-click mouse (but don't move mouse, keep still)
  • Application will launch, icon visible in Dock, but no GUI is visible
  • Wait short or long time, no GUI visible...
  • When keyboard is pressed OR mouse is moved, GUI will appear (and stay)
  • Mostly (if not always for at least tested auidemp.app & some others tested, if keep mouse still ?) happens in Debug/Release and with make/CMake builds
  • I tried adding extra direct/delayed Show/Refresh commands for MainFrame, but to no avail

Problem does not happen (GUI directly visible) for either:

  • Windows builds of same application
  • When launched same Debug build from Xcode (with Cmd-R)
  • Made Universal binary ARM/Intel Make/Release build and run on Intel MBP 2014 with macOS Mojave 10.14.6

Not sure if this is something related to my Mac ARM/Tahoe setup, perhaps others can confirm above works Ok for them ?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26095@github.com>

Stefan Csomor

unread,
Jan 12, 2026, 3:12:32 PM (2 days ago) Jan 12
to wx-...@googlegroups.com, Subscribed
csomor left a comment (wxWidgets/wxWidgets#26095)

Thanks Henk, unfortunately reproduced when launching a plain minimal.app built with Xcode 26.2 with Cmd-O from the Finder under macOS 26.3 (a), not happening when launching from Xcode


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26095/3740310611@github.com>

Lee Ockert

unread,
12:54 AM (9 hours ago) 12:54 AM
to wx-...@googlegroups.com, Subscribed
torstenvl left a comment (wxWidgets/wxWidgets#26095)

Does this also happen if there's a complete .app package with PkgInfo and Info.plist?

Does this also happen if you codesign the binary?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26095/3747904833@github.com>

Stefan Csomor

unread,
2:55 AM (7 hours ago) 2:55 AM
to wx-...@googlegroups.com, Subscribed
csomor left a comment (wxWidgets/wxWidgets#26095)

Note: the issue comes from the fact that the event loop [NSApp run] started in wxApp::CallOnInit does not get stopped when [NSapp stop:nil] gets called from applicationDidFinishLaunching, so I'll try adding another event there to keep the loop running and being able to process stop


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26095/3748275056@github.com>

Stefan Csomor

unread,
3:01 AM (7 hours ago) 3:01 AM
to wx-...@googlegroups.com, Subscribed
csomor left a comment (wxWidgets/wxWidgets#26095)

@HenkDemper could you please test whether modifying utils.mm applicationDidFinishLaunching

by adding

    NSEvent *event = [NSEvent otherEventWithType:NSApplicationDefined
                                location:NSMakePoint(0.0, 0.0)
                           modifierFlags:0
                               timestamp:0
                            windowNumber:0
                                 context:nil
                                 subtype:0 data1:0 data2:0];
    [NSApp postEvent:event atStart:FALSE];

before the [NSApp stop:nil]; solves your problem ? Thanks


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26095/3748293868@github.com>

Henk Demper

unread,
5:27 AM (4 hours ago) 5:27 AM
to wx-...@googlegroups.com, Subscribed
HenkDemper left a comment (wxWidgets/wxWidgets#26095)

@torstenvl : Does this also happen if there's a complete .app package with PkgInfo and Info.plist?

Also happens when PkgInfo and Info.plist are present (like in own .app and sample .apps build with make
(CMake sample builds seem are missing PkgInfo though...)

@torstenvl: Does this also happen if you codesign the binary?

All tested apps were not code-signed... but see below

@csomor: could you please test whether modifying utils.mm applicationDidFinishLaunching ...

Added the fragment, rebuild libs & indeed this solves the problem. Now the UI appears directly when you launch the application even if you don't move the mouse or press a key 👍🏻 I think a good improvement for wxWidgets macOS apps in general. Thanks !


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26095/3748849080@github.com>

Reply all
Reply to author
Forward
0 new messages