Make keyboard move/resize faster with Alt pressed.
svn path=/trunk/kdebase/kwin/; revision=254811
This commit is contained in:
parent
e82bcc09ac
commit
79796b2fb7
1 changed files with 2 additions and 1 deletions
|
@ -1405,8 +1405,9 @@ void Client::keyPressEvent( uint key_code )
|
||||||
if ( !isMove() && !isResize() )
|
if ( !isMove() && !isResize() )
|
||||||
return;
|
return;
|
||||||
bool is_control = key_code & Qt::CTRL;
|
bool is_control = key_code & Qt::CTRL;
|
||||||
|
bool is_alt = key_code & Qt::ALT;
|
||||||
key_code = key_code & 0xffff;
|
key_code = key_code & 0xffff;
|
||||||
int delta = is_control?1:8;
|
int delta = is_control?1:is_alt?32:8;
|
||||||
QPoint pos = QCursor::pos();
|
QPoint pos = QCursor::pos();
|
||||||
switch ( key_code )
|
switch ( key_code )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue