diff options
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) { |