summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-04-14 02:30:14 +0000
committersabetts <sabetts>2003-04-14 02:30:14 +0000
commit65963a411c7b8f32ff9936ab477943d9c54e0442 (patch)
tree553c9407a4cd4f4813890e222c741963240b7196 /src/main.c
parent3a1b9f4a566bb8292481eb1d059713f48f185317 (diff)
downloadratpoison-65963a411c7b8f32ff9936ab477943d9c54e0442.zip
* src/main.c (main): if the screen was specified on the
command-line, send the command to the correct screen. * src/communications.c (send_command): new argument, screen_num. Get the root window for the specified screen. prototype updated.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 33a9597..8c3b98b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -568,7 +568,11 @@ main (int argc, char *argv[])
for (i=0; i<cmd_count; i++)
{
- send_command (command[i]);
+ if (screen_arg)
+ send_command (command[i], screen_num);
+ else
+ send_command (command[i], -1);
+
free (command[i]);
}