From 6c51fb76f4d666e79b82a27cf93e2bffbc80a0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 15 Jan 2007 12:19:44 +0000 Subject: [PATCH] Kill only with left or middle button. svn path=/trunk/KDE/kdebase/workspace/; revision=623744 --- killwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/killwindow.cpp b/killwindow.cpp index 6dfab97f30..ff1f215020 100644 --- a/killwindow.cpp +++ b/killwindow.cpp @@ -76,7 +76,7 @@ void KillWindow::start() mx /= 10; my /= 10; } - QCursor::setPos(cursorPos()+QPoint(mx, my)); + QCursor::setPos(QCursor::pos()+QPoint(mx, my)); } if (ev.type == ButtonRelease) @@ -87,7 +87,8 @@ void KillWindow::start() escape_pressed = true; break; } - workspace->killWindowId(ev.xbutton.subwindow); + if( ev.xbutton.button == Button1 || ev.xbutton.button == Button2 ) + workspace->killWindowId(ev.xbutton.subwindow); } continue; }