diff options
author | sabetts <sabetts> | 2004-10-05 03:07:22 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2004-10-05 03:07:22 +0000 |
commit | ad1da50e94819e8e79da1fc0246f247bfdbc99a9 (patch) | |
tree | 991682c6b11919bb5fd29eee85631bd95c1aa459 /src/screen.c | |
parent | 442b8d1ae2f4419ca2e2e4d76ad06ae38d18d1c7 (diff) | |
download | ratpoison-ad1da50e94819e8e79da1fc0246f247bfdbc99a9.zip |
* src/screen.h (is_a_root_window): new prototype
* src/screen.c (is_a_root_window): new function
* src/events.c (property_notify): check for ratpoison commands on
every root window, not just the default root window.
* src/communications.c (send_command): store the root window in a
variable, root. and use it whenever the root window is needed.
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index 5d7329d..56aa96e 100644 --- a/src/screen.c +++ b/src/screen.c @@ -146,6 +146,17 @@ find_screen (Window w) return NULL; } +/* Return 1 if w is a root window of any of the screens. */ +int +is_a_root_window (int w) +{ + int i; + for (i=0; i<num_screens; i++) + if (screens[i].root == w) return 1; + + return 0; +} + void init_screens (int screen_arg, int screen_num) { |