From e2ffbc884c00b1aa2049cd4c3f0b71e5f6f54325 Mon Sep 17 00:00:00 2001 From: Cristian Tibirna Date: Mon, 15 Jul 2002 20:28:55 +0000 Subject: [PATCH] CT: commit an older patch which loses "stupidly". svn path=/trunk/kdebase/kwin/; revision=166870 --- options.cpp | 4 ++-- options.h | 2 +- placement.cpp | 13 ++++++++----- placement.h | 4 ++-- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/options.cpp b/options.cpp index 22404355b9..ac24d2d15a 100644 --- a/options.cpp +++ b/options.cpp @@ -204,8 +204,8 @@ void Options::reload() if (val == "Smart") placement = Smart; else if (val == "Random") placement = Random; else if (val == "Cascade") placement = Cascade; - else if (val == "StupidlyCentered") placement = StupidlyCentered; - else if (val == "StupidlyZeroCornered") placement = StupidlyZeroCornered; + else if (val == "Centered") placement = Centered; + else if (val == "ZeroCornered") placement = ZeroCornered; animateShade = config->readBoolEntry("AnimateShade", TRUE ); diff --git a/options.h b/options.h index d56c633b6f..b293c45fb1 100644 --- a/options.h +++ b/options.h @@ -135,7 +135,7 @@ public: * Normally you don't have to worry. What the WM adds to the startup time * is nil compared to the creation of the window itself in the memory */ - enum PlacementPolicy { Random, Smart, Cascade, StupidlyCentered, StupidlyZeroCornered }; + enum PlacementPolicy { Random, Smart, Cascade, Centered, ZeroCornered }; PlacementPolicy placement; bool focusPolicyIsReasonable() { diff --git a/placement.cpp b/placement.cpp index 8fab4e4186..ca233c6912 100644 --- a/placement.cpp +++ b/placement.cpp @@ -66,8 +66,8 @@ void Placement::place(Client* c) { if (options->placement == Options::Random) placeAtRandom(c); else if (options->placement == Options::Cascade) placeCascaded(c); - else if (options->placement == Options::StupidlyCentered) placeStupidlyCentered(c); - else if (options->placement == Options::StupidlyZeroCornered) placeStupidlyZeroCornered(c); + else if (options->placement == Options::Centered) placeCentered(c); + else if (options->placement == Options::ZeroCornered) placeZeroCornered(c); else placeSmart(c); } @@ -349,9 +349,9 @@ void Placement::placeCascaded (Client* c, bool re_init) } /*! - Place windows stupidly centered, on top of all others + Place windows centered, on top of all others */ -void Placement::placeStupidlyCentered (Client* c){ +void Placement::placeCentered (Client* c){ // get the maximum allowed windows space and desk's origin // (CT 20Nov1999 - is this common to all desktops?) @@ -364,7 +364,10 @@ void Placement::placeStupidlyCentered (Client* c){ c->move(QPoint(xp, yp)); } -void Placement::placeStupidlyZeroCornered(Client* c) +/*! + Place windows in the (0,0) corner, on top of all others +*/ +void Placement::placeZeroCornered(Client* c) { // get the maximum allowed windows space and desk's origin // (CT 20Nov1999 - is this common to all desktops?) diff --git a/placement.h b/placement.h index baef2f327c..b377f14787 100644 --- a/placement.h +++ b/placement.h @@ -32,8 +32,8 @@ public: void placeAtRandom (Client* c); void placeCascaded (Client* c, bool re_init = false); void placeSmart (Client* c); - void placeStupidlyCentered (Client* c); - void placeStupidlyZeroCornered(Client* c); + void placeCentered (Client* c); + void placeZeroCornered(Client* c); private: