Kill only with left or middle button.

svn path=/trunk/KDE/kdebase/workspace/; revision=623744
This commit is contained in:
Luboš Luňák 2007-01-15 12:19:44 +00:00
parent fd3809e453
commit 6c51fb76f4

View file

@ -76,7 +76,7 @@ void KillWindow::start()
mx /= 10; mx /= 10;
my /= 10; my /= 10;
} }
QCursor::setPos(cursorPos()+QPoint(mx, my)); QCursor::setPos(QCursor::pos()+QPoint(mx, my));
} }
if (ev.type == ButtonRelease) if (ev.type == ButtonRelease)
@ -87,7 +87,8 @@ void KillWindow::start()
escape_pressed = true; escape_pressed = true;
break; break;
} }
workspace->killWindowId(ev.xbutton.subwindow); if( ev.xbutton.button == Button1 || ev.xbutton.button == Button2 )
workspace->killWindowId(ev.xbutton.subwindow);
} }
continue; continue;
} }