https://bugs.documentfoundation.org/show_bug.cgi?id=170740

Patrick (volunteer) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.documentfounda
                   |                            |tion.org/show_bug.cgi?id=15
                   |                            |5092
                 CC|                            |[email protected]

--- Comment #6 from Patrick (volunteer) <[email protected]> ---
(In reply to Alex Thurgood from comment #5)
> Might be related to bug 128186 ?

I think it is related to my "live resizing" fix for tdf#155092. Although I
haven't been able to reproduce this bug on my laptop, I am able to get my local
 LibreOffice master build to hang if I do the following steps:

1. Open 3 empty Writer documents
2. Press the Option key and then drag the front Writer window to the left or
right edge so that the window gets resized to half the screen when the dragged
ends
3. Drag the same window's titlebar without the Option key so that the window
resizes back to its original size
4. Press Command-w to close the window and LibreOffice hangs

I get what appears to be the same sample as in attachment #205639 so I played
around with the event handling code and found that the debug patch below stops
the hang that I see. Maybe @Dan can see if hanging stops with the debug patch?

If the debug patch works in @Dan's build, then my guess is that
ImplGetSVData()->mpWinData->mbIsLiveResize is not being reset to "false" after
dragging ends for some reason:

diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index 9c0acd6449b1..8604a2619152 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -587,11 +587,13 @@ bool AquaSalInstance::DoYield(bool bWait, bool
bHandleAllCurrentEvents)
                 // the front of the event queue so no more events will be
                 // dispatched until live resizing ends. Surprisingly, live
                 // resizing appears to end in the next mouse down event.
+#if 0
                 if ( ImplGetSVData()->mpWinData->mbIsLiveResize && [pEvent
type] == NSEventTypeLeftMouseUp )
                 {
                     [NSApp postEvent: pEvent atStart: YES];
                     return false;
                 }
+#endif

                 [NSApp sendEvent: pEvent];
                 if ( isWakeupEvent( pEvent ) )

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to