diff options
author | racarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2006-12-18 08:14:43 +0000 |
---|---|---|
committer | racarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2006-12-18 08:14:43 +0000 |
commit | f13d061ac2c0e55fe71ea0ba274959b9e9507e98 (patch) | |
tree | b21fa29d51455939f14675c4afa890707b9a1ab6 /beryl-plugins/src/place.c | |
parent | 1d3ddd7fc7362489ba7acd4ec645f43d6bc0274c (diff) | |
download | marex-dev-f13d061ac2c0e55fe71ea0ba274959b9e9507e98.tar.gz marex-dev-f13d061ac2c0e55fe71ea0ba274959b9e9507e98.tar.bz2 |
Place: Large windows place center rather than attempting to fit in somewhere
git-svn-id: file:///beryl/trunk@1858 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/place.c')
-rw-r--r-- | beryl-plugins/src/place.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/beryl-plugins/src/place.c b/beryl-plugins/src/place.c index db28b75..047a334 100644 --- a/beryl-plugins/src/place.c +++ b/beryl-plugins/src/place.c @@ -616,7 +616,11 @@ placeIntelligent (CompWindow * w, int *x, int *y, GList * windows) } } } - + if (tries == 0 && wRect.width > ( sRect.width/2 ) ) + { + placeCentered(w,x,y); + return; + } if(tries < 10 && wRect.width>0 && wRect.height>0) { tries++; |