From f597c851936e89447a86a6bbbbfa64de510017ff Mon Sep 17 00:00:00 2001 From: Antonio Larrosa Jimenez Date: Fri, 29 Sep 2000 18:14:45 +0000 Subject: [PATCH] Little bug fix for a better behaviour under some strange configurations Approved by M. Ettrich svn path=/trunk/kdebase/kwin/; revision=65784 --- client.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index 12113d9828..491affcc7d 100644 --- a/client.cpp +++ b/client.cpp @@ -321,13 +321,15 @@ bool WindowWrapper::x11Event( XEvent * e) switch ( e->type ) { case ButtonPress: { + bool mod1 = (e->xbutton.state & Mod1Mask) == Mod1Mask; + if ( ((Client*)parentWidget())->isActive() - && ( options->focusPolicy != Options::ClickToFocus && options->clickRaise ) ) { + && ( options->focusPolicy != Options::ClickToFocus + && options->clickRaise && !mod1 ) ) { ((Client*)parentWidget())->autoRaise(); ungrabButton( winId(), None ); } - bool mod1 = (e->xbutton.state & Mod1Mask) == Mod1Mask; Options::MouseCommand com = Options::MouseNothing; if ( mod1){ switch (e->xbutton.button) {