UI/AppKit: Fix wake() to use the correct run loop

wake() was using CFRunLoopGetCurrent() which returns the calling
thread's run loop. When called from an I/O thread to wake the main
thread's event loop, this would wake the wrong run loop.

Fixed by using the stored m_impl->run_loop which is captured at
construction time and refers to the event loop's owning thread.
This commit is contained in:
Andreas Kling
2026-01-22 22:00:09 +01:00
committed by Andreas Kling
parent 2734f72835
commit da77c803c1
Notes: github-actions[bot] 2026-02-06 11:08:36 +00:00

View File

@@ -477,7 +477,7 @@ void EventLoopImplementationMacOS::quit(int exit_code)
void EventLoopImplementationMacOS::wake()
{
CFRunLoopWakeUp(CFRunLoopGetCurrent());
CFRunLoopWakeUp(m_impl->run_loop);
}
bool EventLoopImplementationMacOS::was_exit_requested() const