vcl/osx/salinst.cxx | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-)
New commits: commit b9fb1674312a0c4a2a4038fa4623e0ad4fad244a Author: Patrick Luby <[email protected]> AuthorDate: Tue Mar 3 00:43:24 2026 +0100 Commit: Patrick Luby <[email protected]> CommitDate: Tue Mar 3 15:10:00 2026 +0100 Revert "Related: tdf#155092 don't rely on cached "in live resize" value" This reverts commit 50e337f1f1c1c8c3f04d8ce0f1515118a7700fed. Reason for revert: This section of code appears to be causing tdf#170740 so revert and try to implement a replacement fix for tdf155092. Change-Id: I82e2fc5c83ce14f9af86ad93837969207df79d7e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200867 Tested-by: Jenkins Reviewed-by: Patrick Luby <[email protected]> diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index 53ef9f4a2f12..22b1422ce6e0 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -588,24 +588,8 @@ bool AquaSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents) // resizing appears to end in the next mouse down event. if ( ImplGetSVData()->mpWinData->mbIsLiveResize && [pEvent type] == NSEventTypeLeftMouseUp ) { - // After dragging a window with the Option key pressed (see - // https://bugs.documentfoundation.org/show_bug.cgi?id=170740#c6), - // ImplGetSVData()->mpWinData->mbIsLiveResize remains set - // to true because the current event needs to be dispatched - // for ImplGetSVData()->mpWinData->mbIsLiveResize to be - // reset to false. This causes dispatching to become an - // infinite wait for the current NSEventTypeLeftMouseUp - // event to get dispatched. So query the native window - // directly to get the real live resizing status. - // Important note: at least on macOS 26.3 Tahoe, calling - // -[NSEvent window] is very slow so call it only when - // ImplGetSVData()->mpWinData->mbIsLiveResize is true. - NSWindow *pEventWindow = [pEvent window]; - if ( [pEventWindow inLiveResize] ) - { - [NSApp postEvent: pEvent atStart: YES]; - return false; - } + [NSApp postEvent: pEvent atStart: YES]; + return false; } [NSApp sendEvent: pEvent];
