summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-03-10 02:53:38 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-03-10 02:53:38 +0100
commit5ef23c23b337012e12189f31b091be3eab970657 (patch)
tree5370e80f54872b6afe1da116ce44a6b0cc6ed6ab /src
parent88938c9e4deeef2ccbc0b1d5eece140f05930afa (diff)
downloadratpoison-5ef23c23b337012e12189f31b091be3eab970657.zip
At init time, add unmapped windows to the default (first) screen.
Kills an error message and fixes a "regression" in my setup. Previously, if xinerama was not active (disabled or screen count == 1), out-of-screen windows were added to screen 0 and were considered "managed".
Diffstat (limited to 'src')
-rw-r--r--src/manage.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/manage.c b/src/manage.c
index db77035..91f046b 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -467,10 +467,7 @@ scanwins (void)
screen = find_screen_by_attr (attr);
if (!screen)
- {
- PRINT_ERROR (("Unable to find a screen by window attributes\n"));
- continue;
- }
+ list_first (screen, &rp_screens, node);
win = add_to_window_list (screen, wins[i]);