From 679f0c371471714ce25dbd7c92985889d0a46982 Mon Sep 17 00:00:00 2001 From: racarr Date: Sun, 17 Dec 2006 06:43:05 +0000 Subject: Nicer behavior for large windows git-svn-id: file:///beryl/trunk@1819 d7aaf104-2d23-0410-ae22-9d23157bf5a3 --- beryl-plugins/src/place.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'beryl-plugins/src/place.c') 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) -- cgit v1.1