diff options
author | racarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2006-12-17 06:43:05 +0000 |
---|---|---|
committer | racarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2006-12-17 06:43:05 +0000 |
commit | 679f0c371471714ce25dbd7c92985889d0a46982 (patch) | |
tree | 56361110cc87dfa6e4fd53e24c7602c38e4a9aec /beryl-plugins | |
parent | ee0aa6b11588e883d69f2918b05684606bb27f51 (diff) | |
download | marex-dev-679f0c371471714ce25dbd7c92985889d0a46982.tar.gz marex-dev-679f0c371471714ce25dbd7c92985889d0a46982.tar.bz2 |
Nicer behavior for large windows
git-svn-id: file:///beryl/trunk@1819 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins')
-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 278f31e..2db754b 100644 --- a/beryl-plugins/src/place.c +++ b/beryl-plugins/src/place.c @@ -569,7 +569,11 @@ static void placeIntelligent(CompWindow *w, int *x, int *y, GList *windows){ } } } - placeRandom(w,x,y); + if ( wRect.width > ((sRect.width-sRect.x)/2)){ + placeCentered(w,x,y); + } else { + placeRandom(w,x,y); + } } static gint leftmost_cmp(gconstpointer a, gconstpointer b) |