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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/beryl-plugins/src/place.c b/beryl-plugins/src/place.c
index 48c6393..d8f60c1 100644
--- a/beryl-plugins/src/place.c
+++ b/beryl-plugins/src/place.c
@@ -277,9 +277,9 @@ static void placeIntelligent(CompWindow *window, int *xo, int *yo){
XRectangle windowRec = RECTANGLE_FROM_WINDOW(window);
Bool overlaps = FALSE;
- for (x = 0; x < window->screen->workArea.width; x++){
+ for (x = 0; x < window->screen->workArea.width; x+=(get_window_height(window))/10){
overlaps=FALSE;
- for (y = 0; y < window->screen->workArea.height;y++){
+ for (y = 0; y < window->screen->workArea.height;y+=(get_window_width(window))/10){
CompScreen *l=window->screen->windows;
while (l){
XRectangle dest;