CT: move window by titlebar with any mouse button (approved by Matthias Ettrich)

svn path=/trunk/kdebase/kwin/; revision=139239
icc-effect-5.14.5
Cristian Tibirna 2002-02-27 21:01:01 +00:00
parent 6d3a097842
commit e953d5e559
1 changed files with 1091 additions and 1085 deletions

View File

@ -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 ) {