diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-12-09 16:30:52 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-12-09 16:39:18 +0100 |
commit | 8637e3d69e744fa6efca981d830e344d3ab122dc (patch) | |
tree | f1d59c2b1c1e2cd92fd20976a72888f177a9c6d2 | |
parent | 597ab87c290016fec5c1d333915c9e1dfdde1627 (diff) | |
download | ratpoison-8637e3d69e744fa6efca981d830e344d3ab122dc.zip |
Adapt function name
-rw-r--r-- | src/events.c | 2 | ||||
-rw-r--r-- | src/manage.c | 2 | ||||
-rw-r--r-- | src/screen.c | 2 | ||||
-rw-r--r-- | src/screen.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/events.c b/src/events.c index e462d4f..e87bce2 100644 --- a/src/events.c +++ b/src/events.c @@ -82,7 +82,7 @@ new_window (XCreateWindowEvent *e) /* New windows belong to the current screen */ s = rp_current_screen; - if (is_rp_window_for_screen(e->window)) return; + if (is_rp_window (e->window)) return; if (s && win == NULL && e->window != s->key_window diff --git a/src/manage.c b/src/manage.c index 2c12f09..0c1877d 100644 --- a/src/manage.c +++ b/src/manage.c @@ -462,7 +462,7 @@ scanwins () rp_screen *screen; XGetWindowAttributes(dpy, wins[i], &attr); - if (is_rp_window_for_screen(wins[i]) + if (is_rp_window (wins[i]) || attr.override_redirect == True || unmanaged_window (wins[i])) continue; diff --git a/src/screen.c b/src/screen.c index 095040c..8b624c7 100644 --- a/src/screen.c +++ b/src/screen.c @@ -514,7 +514,7 @@ is_rp_window_for_given_screen (Window w, rp_screen *s) } int -is_rp_window_for_screen(Window w) +is_rp_window (Window w) { rp_screen *cur; diff --git a/src/screen.h b/src/screen.h index 69bc032..fdc0748 100644 --- a/src/screen.h +++ b/src/screen.h @@ -42,7 +42,7 @@ void init_screens (void); void activate_screen (rp_screen *s); void deactivate_screen (rp_screen *s); -int is_rp_window_for_screen (Window w); +int is_rp_window (Window w); int is_a_root_window (unsigned int w); char *screen_dump (rp_screen *screen); |