From 625d26a6ef7e740d3bcdb7f36afd62fffee33d1e Mon Sep 17 00:00:00 2001 From: Torben Weis Date: Wed, 27 Sep 2000 16:13:59 +0000 Subject: [PATCH] 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 --- client.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client.cpp b/client.cpp index 6afd522146..2941ffcd37 100644 --- a/client.cpp +++ b/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());