From 9c34475e4eaa3b3a8d101dc2b5f458e90576f6c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 29 Apr 2005 15:14:10 +0000 Subject: [PATCH] Make only left mouse on window borders move/resize windows. BUG: 83378 svn path=/trunk/kdebase/kwin/; revision=408633 --- events.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/events.cpp b/events.cpp index 0397c08170..ae8ec7f123 100644 --- a/events.cpp +++ b/events.cpp @@ -1235,7 +1235,8 @@ void Client::processDecorationButtonPress( int button, int /*state*/, int x, int com = active ? options->commandActiveTitlebar2() : options->commandInactiveTitlebar2(); else if ( button == Button3 ) com = active ? options->commandActiveTitlebar3() : options->commandInactiveTitlebar3(); - if( com != Options::MouseOperationsMenu // actions where it's not possible to get the matching + if( button == Button1 + && com != Options::MouseOperationsMenu // actions where it's not possible to get the matching && com != Options::MouseMinimize ) // mouse release event { // FRAME mouseMoveEvent( e ); shouldn't be necessary