From ef476127f86da8b98d7f768a0f9d968dee546a77 Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Sun, 21 Sep 2003 20:14:26 +0000 Subject: [PATCH] Found the correct method to send mousepresses to kwin. I still miss the mouserelease, though. svn path=/trunk/kdebase/kwin/; revision=252930 --- clients/b2/b2client.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clients/b2/b2client.cpp b/clients/b2/b2client.cpp index 9e5d3eebd9..daf48a8d31 100644 --- a/clients/b2/b2client.cpp +++ b/clients/b2/b2client.cpp @@ -331,8 +331,7 @@ void B2Titlebar::mousePressEvent( QMouseEvent * e ) } QMouseEvent _e(QEvent::MouseButtonPress, mapToParent(e->pos()), e->globalPos(), e->button(), e->state()); - //client->widget()->mousePressEvent(&_e); - QWidget::mousePressEvent(&_e); + client->processMousePressEvent(&_e); } void B2Titlebar::mouseReleaseEvent( QMouseEvent * e ) @@ -341,7 +340,6 @@ void B2Titlebar::mouseReleaseEvent( QMouseEvent * e ) QMouseEvent _e(QEvent::MouseButtonRelease, mapToParent(e->pos()), e->globalPos(), e->button(), e->state()); //client->widget()->mouseReleaseEvent(&_e); - QWidget::mouseReleaseEvent(&_e); } void B2Titlebar::mouseMoveEvent( QMouseEvent * e ) @@ -357,7 +355,6 @@ void B2Titlebar::mouseMoveEvent( QMouseEvent * e ) QMouseEvent _e(QEvent::MouseMove, mapToParent(e->pos()), e->globalPos(), e->button(), e->state()); //client->widget()->mouseMoveEvent( &_e); - QWidget::mouseMoveEvent(&_e); } } #endif