diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-22 17:30:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-25 10:39:16 +0100 |
commit | 768d445c1fd8a104a6c5e80ce93af99860ec6dc7 (patch) | |
tree | 12a439c34b3d297c87db61f422ea0b043711d4ed /vcl/source/window/winproc.cxx | |
parent | 3fad26e5dd6b04a521a96a618473ed08c12b9f9c (diff) |
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
Diffstat (limited to 'vcl/source/window/winproc.cxx')
-rw-r--r-- | vcl/source/window/winproc.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index ff1252bcfc30..493147f3281a 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -1912,14 +1912,6 @@ static void ImplHandleLoseFocus( vcl::Window* pWindow ) 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; // execute Focus-Events after a delay, such that SystemChildWindows |