summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-04-14 02:15:05 +0000
committersabetts <sabetts>2003-04-14 02:15:05 +0000
commitfd27c5399c536a4cc290eeb8a36c5f8b56374eec (patch)
tree4fe6868255ffc8748d1eda526c6175731d7987e4 /src/manage.c
parent9165a8f99b67acf07f5a30e481885d72660026b7 (diff)
downloadratpoison-fd27c5399c536a4cc290eeb8a36c5f8b56374eec.zip
* src/main.c (init_screen): print the display string for
debugging. (main): parse the screen argument and process it.
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/manage.c b/src/manage.c
index 059c480..f66f723 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -64,7 +64,16 @@ ungrab_prefix_key (Window w)
screen_info*
current_screen ()
{
- return &screens[rp_current_screen];
+ int i;
+
+ for (i=0; i<num_screens; i++)
+ {
+ if (screens[i].screen_num == rp_current_screen)
+ return &screens[i];
+ }
+
+ /* This should never happen. */
+ return &screens[0];
}
void