From 86594e3fe8120f51da2b9a93fc6697346ca6a6ee Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 13 Apr 2005 10:59:58 +0000 Subject: [PATCH] make moving of maximized windows off by default. have had this patch for a while and talked about it with Seli on March 9th but never got around to committing it. after being asked about it _again_ i decided to do `cvs ci` this allows well designed window decorations to allow the user to jam the mouse into the corner of the screen and close the window. svn path=/trunk/kdebase/kwin/; revision=405269 --- kcmkwin/kwinoptions/windows.cpp | 4 ++-- lib/kdecoration_p.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kcmkwin/kwinoptions/windows.cpp b/kcmkwin/kwinoptions/windows.cpp index bfe7e237d5..cfa4a01ee9 100644 --- a/kcmkwin/kwinoptions/windows.cpp +++ b/kcmkwin/kwinoptions/windows.cpp @@ -1050,7 +1050,7 @@ void KMovingConfig::load( void ) setPlacement(SMART_PLACEMENT); // } - setMoveResizeMaximized(config->readBoolEntry(KWIN_MOVE_RESIZE_MAXIMIZED, true)); + setMoveResizeMaximized(config->readBoolEntry(KWIN_MOVE_RESIZE_MAXIMIZED, false)); int v; @@ -1134,7 +1134,7 @@ void KMovingConfig::defaults() setResizeOpaque(RESIZE_TRANSPARENT); setGeometryTip(false); setPlacement(SMART_PLACEMENT); - setMoveResizeMaximized(true); + setMoveResizeMaximized(false); //copied from kcontrol/konq/kwindesktop, aleXXX setWindowSnapZone(KWM_WNDW_SNAP_ZONE_DEFAULT); diff --git a/lib/kdecoration_p.cpp b/lib/kdecoration_p.cpp index 94291dd497..c43a197fc5 100644 --- a/lib/kdecoration_p.cpp +++ b/lib/kdecoration_p.cpp @@ -205,7 +205,7 @@ unsigned long KDecorationOptionsPrivate::updateKWinSettings( KConfig* config ) config->setGroup( "Windows" ); bool old_move_resize_maximized_windows = move_resize_maximized_windows; - move_resize_maximized_windows = config->readBoolEntry( "MoveResizeMaximizedWindows", true ); + move_resize_maximized_windows = config->readBoolEntry( "MoveResizeMaximizedWindows", false ); if( old_move_resize_maximized_windows != move_resize_maximized_windows ) changed |= SettingBorder;