From 4b28eb82db8d1d4c4704817cccc5889f05fc6f2e Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Sat, 6 Mar 2004 15:21:14 +0000 Subject: [PATCH] Fixed double-click on the window border behaviour. It incorrectly triggered the titlebar double-click action. svn path=/trunk/kdebase/kwin/; revision=293942 --- clients/b2/b2client.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clients/b2/b2client.cpp b/clients/b2/b2client.cpp index fe1d0aa15f..63fb697f7f 100644 --- a/clients/b2/b2client.cpp +++ b/clients/b2/b2client.cpp @@ -1191,9 +1191,11 @@ void B2Titlebar::paintEvent(QPaintEvent *) } } -void B2Titlebar::mouseDoubleClickEvent( QMouseEvent * ) +void B2Titlebar::mouseDoubleClickEvent(QMouseEvent *e) { - client->titlebarDblClickOperation(); + if (e->y() < height()) { + client->titlebarDblClickOperation(); + } } void B2Titlebar::mousePressEvent( QMouseEvent * e )