Kaydet (Commit) 768d445c authored tarafından Caolán McNamara's avatar Caolán McNamara

gtk3: why close popups when losing focus

I don't see why we want to do this, and it causes trouble with the gtk3 vclplug
and the undo popup and color popup where gtk is giving us a "losing focus"
signal even though those windows have the "don't ask for input focus" bit set.

Change-Id: I500ca253cc43c35dda55ee0301fdcaafbd212e2d
üst 3fad26e5
...@@ -1912,14 +1912,6 @@ static void ImplHandleLoseFocus( vcl::Window* pWindow ) ...@@ -1912,14 +1912,6 @@ static void ImplHandleLoseFocus( vcl::Window* pWindow )
pSVData->maWinData.mpTrackWin->EndTracking( TrackingEventFlags::Cancel ); pSVData->maWinData.mpTrackWin->EndTracking( TrackingEventFlags::Cancel );
} }
// here we always terminate the popupmode, also when NOFOCUSCLOSE
// is set, such that we do not show windows during the switch
if ( pSVData->maWinData.mpFirstFloat )
{
if ( !(pSVData->maWinData.mpFirstFloat->GetPopupModeFlags() & FloatWinPopupFlags::NoAppFocusClose) )
pSVData->maWinData.mpFirstFloat->EndPopupMode( FloatWinPopupEndFlags::Cancel | FloatWinPopupEndFlags::CloseAll );
}
pWindow->ImplGetWindowImpl()->mpFrameData->mbHasFocus = false; pWindow->ImplGetWindowImpl()->mpFrameData->mbHasFocus = false;
// execute Focus-Events after a delay, such that SystemChildWindows // execute Focus-Events after a delay, such that SystemChildWindows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment