Files
ElyOffice/patches/libreoffice/0015-aqua-no-wait-with-a-due-timer.patch
T
ZacharyZhang-NY b7fca0146d Ely Office: six offline-first desktop apps in Rust and GPUI
ElyDoc, ElyTable, ElyShow (LibreOfficeKit), ElyPDF (MuPDF), ElyTree (Git),
ElyMark (Milkdown and CodeMirror in CEF). ElyMail and ElyAgent follow.
2026-10-08 21:20:08 -04:00

14 lines
664 B
Diff

--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -657,7 +657,9 @@
// window is in live resize
bool bOldIsWaitingForNativeEvent = ImplGetSVData()->mpWinData->mbIsWaitingForNativeEvent;
ImplGetSVData()->mpWinData->mbIsWaitingForNativeEvent = !o3tl::IsRunningUnitTest();
- if( bWait && ! bHadEvent && !ImplGetSVData()->mpWinData->mbIsLiveResize )
+ // A due timer would never wake the native wait.
+ const bool bTimerDue = pTimer && pTimer->IsDirectTimeout();
+ if( bWait && ! bHadEvent && !bTimerDue && !ImplGetSVData()->mpWinData->mbIsLiveResize )
{
SolarMutexReleaser aReleaser;