another patch from Matthias: Use the active command set for windows that
never can be active (like the new pager) svn path=/trunk/kdebase/kwin/; revision=65510
This commit is contained in:
parent
b6ed7aefb0
commit
625d26a6ef
1 changed files with 7 additions and 3 deletions
10
client.cpp
10
client.cpp
|
@ -1181,18 +1181,22 @@ void Client::mousePressEvent( QMouseEvent * e)
|
|||
}
|
||||
}
|
||||
else {
|
||||
bool active = isActive();
|
||||
if ( !wantsInput() ) // we cannot be active, use it anyway
|
||||
active = TRUE;
|
||||
|
||||
if ( e->button() == LeftButton ) {
|
||||
mouseMoveEvent( e );
|
||||
buttonDown = TRUE;
|
||||
moveOffset = e->pos();
|
||||
invertedMoveOffset = rect().bottomRight() - e->pos();
|
||||
com = isActive() ? options->commandActiveTitlebar1() : options->commandInactiveTitlebar1();
|
||||
com = active ? options->commandActiveTitlebar1() : options->commandInactiveTitlebar1();
|
||||
}
|
||||
else if ( e->button() == MidButton ) {
|
||||
com = isActive() ? options->commandActiveTitlebar2() : options->commandInactiveTitlebar2();
|
||||
com = active ? options->commandActiveTitlebar2() : options->commandInactiveTitlebar2();
|
||||
}
|
||||
else if ( e->button() == RightButton ) {
|
||||
com = isActive() ? options->commandActiveTitlebar3() : options->commandInactiveTitlebar3();
|
||||
com = active ? options->commandActiveTitlebar3() : options->commandInactiveTitlebar3();
|
||||
}
|
||||
}
|
||||
performMouseCommand( com, e->globalPos());
|
||||
|
|
Loading…
Reference in a new issue