Kill only with left or middle button.
svn path=/trunk/KDE/kdebase/workspace/; revision=623744
This commit is contained in:
parent
fd3809e453
commit
6c51fb76f4
1 changed files with 3 additions and 2 deletions
|
@ -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,6 +87,7 @@ void KillWindow::start()
|
||||||
escape_pressed = true;
|
escape_pressed = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if( ev.xbutton.button == Button1 || ev.xbutton.button == Button2 )
|
||||||
workspace->killWindowId(ev.xbutton.subwindow);
|
workspace->killWindowId(ev.xbutton.subwindow);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue