mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Fix for incorrect automatic palcement of windows if there were shaded
windows on the other workspaces.
This commit is contained in:
@@ -467,7 +467,8 @@ autoPlaceWindow(WWindow *wwin, int *x_ret, int *y_ret,
|
|||||||
if ((tx < (test_x + width)) && ((tx + tw) > test_x) &&
|
if ((tx < (test_x + width)) && ((tx + tw) > test_x) &&
|
||||||
(ty < (test_y + height)) && ((ty + th) > test_y) &&
|
(ty < (test_y + height)) && ((ty + th) > test_y) &&
|
||||||
(test_window->flags.mapped ||
|
(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.miniaturized ||
|
||||||
test_window->flags.hidden)))) {
|
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) &&
|
(ty < (test_y + height)) && ((ty + th) > test_y) &&
|
||||||
(test_window->flags.mapped ||
|
(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.miniaturized ||
|
||||||
test_window->flags.hidden)))) {
|
test_window->flags.hidden)))) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user