CT: move window by titlebar with any mouse button (approved by Matthias Ettrich)
svn path=/trunk/kdebase/kwin/; revision=139239icc-effect-5.14.5
parent
6d3a097842
commit
e953d5e559
|
@ -1429,11 +1429,17 @@ void Client::mousePressEvent( QMouseEvent * e)
|
|||
if ( !wantsInput() ) // we cannot be active, use it anyway
|
||||
active = TRUE;
|
||||
|
||||
if ( e->button() == LeftButton ) {
|
||||
if (active &&
|
||||
(e->button() == LeftButton && options->commandActiveTitlebar1() != Options::MouseOperationsMenu) ||
|
||||
(e->button() == MidButton && options->commandActiveTitlebar2() != Options::MouseOperationsMenu) ||
|
||||
(e->button() == RightButton && options->commandActiveTitlebar3() != Options::MouseOperationsMenu) ) {
|
||||
mouseMoveEvent( e );
|
||||
buttonDown = TRUE;
|
||||
moveOffset = e->pos();
|
||||
invertedMoveOffset = rect().bottomRight() - e->pos();
|
||||
}
|
||||
|
||||
if ( e->button() == LeftButton ) {
|
||||
com = active ? options->commandActiveTitlebar1() : options->commandInactiveTitlebar1();
|
||||
}
|
||||
else if ( e->button() == MidButton ) {
|
||||
|
|
Loading…
Reference in New Issue