summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-04-14 01:13:28 +0000
committersabetts <sabetts>2003-04-14 01:13:28 +0000
commit9165a8f99b67acf07f5a30e481885d72660026b7 (patch)
tree28885a29099dad012dc829239060ad700bf5e07c /src
parent85cb45d41d6c15ebee86678febe8732846e4a4ee (diff)
downloadratpoison-9165a8f99b67acf07f5a30e481885d72660026b7.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/main.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/main.c b/src/main.c
index d6b6eab..43a65cd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -605,22 +605,17 @@ main (int argc, char *argv[])
if (screen_arg)
{
- if (screen_num >= 0 && screen_num < num_screens)
- {
- init_screen (&screens[screen_num], screen_num);
- }
- else
+ if (screen_num < 0 || screen_num >= num_screens)
{
fprintf (stderr, "%d is an invalid screen for the display\n", screen_num);
exit (EXIT_FAILURE);
}
}
- else
+
+ for (i=0; i<num_screens; i++)
{
- for (i=0; i<num_screens; i++)
- {
- init_screen (&screens[i], i);
- }
+ init_screen (&screens[i], i);
+ init_frame_list (&screens[i]);
}
init_frame_lists ();