summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorMathieu OTHACEHE <m.othacehe@gmail.com>2016-12-07 10:03:52 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-12-08 17:40:34 +0100
commit94fcf440050defa49d9f726302a62d327d377e84 (patch)
treeb138b1ca0514c9272f6dd71ba6708fd0878c6cd3 /src/events.c
parent4d12ba27413510a4d0128cb20e47aaa173fa266a (diff)
downloadratpoison-94fcf440050defa49d9f726302a62d327d377e84.zip
Remove useless argument from is_rp_window_for_screen function
The screen argument is useless as this function operates on all screens. To find if a window belong to a specific ratpoison screen, function is_rp_window_for_given_screen may be used.
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/events.c b/src/events.c
index 5e1013a..e462d4f 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, s)) return;
+ if (is_rp_window_for_screen(e->window)) return;
if (s && win == NULL
&& e->window != s->key_window