From 0d4f5bc196d29c6d79acb916f459a0baf758b71d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 3 Dec 2018 20:51:38 +0200 Subject: remove unused MouseNotifyEvent enum values Change-Id: I3d007287daf82a96e6aead6d75d81ef3e1a6f267 Reviewed-on: https://gerrit.libreoffice.org/64483 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/window/window.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'vcl/source/window') diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 99e3db2abc97..a12d597091a7 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -395,12 +395,6 @@ void Window::dispose() // hide window in order to trigger the Paint-Handling Hide(); - // announce the window is to be destroyed - { - NotifyEvent aNEvt( MouseNotifyEvent::DESTROY, this ); - CompatNotify( aNEvt ); - } - // EndExtTextInputMode if ( pSVData->maWinData.mpExtTextInputWin == this ) { @@ -2534,9 +2528,9 @@ void Window::EnableInput( bool bEnable, bool bChild ) ImplGenerateMouseMove(); // #104827# notify parent - if ( bNotify ) + if ( bNotify && bEnable ) { - NotifyEvent aNEvt( bEnable ? MouseNotifyEvent::INPUTENABLE : MouseNotifyEvent::INPUTDISABLE, this ); + NotifyEvent aNEvt( MouseNotifyEvent::INPUTENABLE, this ); CompatNotify( aNEvt ); } } -- cgit