summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-03 20:51:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-04 07:13:38 +0100
commit0d4f5bc196d29c6d79acb916f459a0baf758b71d (patch)
treec3f8c7ca88fc17862b66c36b29b51b4f6baf5218 /vcl/source/window
parent21c86b6aaa73a4607eefd5e34bb726f16b505f1f (diff)
remove unused MouseNotifyEvent enum values
Change-Id: I3d007287daf82a96e6aead6d75d81ef3e1a6f267 Reviewed-on: https://gerrit.libreoffice.org/64483 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/window.cxx10
1 files changed, 2 insertions, 8 deletions
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 );
}
}