Little bug fix for a better behaviour under some strange configurations

Approved by M. Ettrich

svn path=/trunk/kdebase/kwin/; revision=65784
This commit is contained in:
Antonio Larrosa Jimenez 2000-09-29 18:14:45 +00:00
parent 2dd48cfde3
commit f597c85193

View file

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