CT: commit an older patch which loses "stupidly".

svn path=/trunk/kdebase/kwin/; revision=166870
This commit is contained in:
Cristian Tibirna 2002-07-15 20:28:55 +00:00
parent f135da3521
commit e2ffbc884c
4 changed files with 13 additions and 10 deletions

View file

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

View file

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

View file

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

View file

@ -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: