summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/place.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-17 06:43:05 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-17 06:43:05 +0000
commit679f0c371471714ce25dbd7c92985889d0a46982 (patch)
tree56361110cc87dfa6e4fd53e24c7602c38e4a9aec /beryl-plugins/src/place.c
parentee0aa6b11588e883d69f2918b05684606bb27f51 (diff)
downloadmarex-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/src/place.c')
-rw-r--r--beryl-plugins/src/place.c6
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)