From cd6639ccc78d469f427f62a22151d32a1393d3df Mon Sep 17 00:00:00 2001 From: dan Date: Sat, 30 Sep 2000 03:46:07 +0000 Subject: [PATCH] Fix for incorrect automatic palcement of windows if there were shaded windows on the other workspaces. --- src/placement.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/placement.c b/src/placement.c index 025ec906..f0165583 100644 --- a/src/placement.c +++ b/src/placement.c @@ -467,7 +467,8 @@ autoPlaceWindow(WWindow *wwin, int *x_ret, int *y_ret, if ((tx < (test_x + width)) && ((tx + tw) > test_x) && (ty < (test_y + height)) && ((ty + th) > test_y) && (test_window->flags.mapped || - (test_window->flags.shaded && + (test_window->flags.shaded && + test_window->frame->workspace==scr->current_workspace && !(test_window->flags.miniaturized || test_window->flags.hidden)))) { @@ -502,6 +503,7 @@ autoPlaceWindow(WWindow *wwin, int *x_ret, int *y_ret, (ty < (test_y + height)) && ((ty + th) > test_y) && (test_window->flags.mapped || (test_window->flags.shaded && + test_window->frame->workspace==scr->current_workspace && !(test_window->flags.miniaturized || test_window->flags.hidden)))) {