summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/place.c
diff options
context:
space:
mode:
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)