summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
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 001eab6..220e7df 100644
--- a/src/events.c
+++ b/src/events.c
@@ -561,7 +561,7 @@ property_notify (XEvent *ev)
PRINT_DEBUG (("atom: %ld\n", ev->xproperty.atom));
if (ev->xproperty.atom == rp_command_request
- && ev->xproperty.window == DefaultRootWindow (dpy)
+ && is_a_root_window (ev->xproperty.window)
&& ev->xproperty.state == PropertyNewValue)
{
PRINT_DEBUG (("ratpoison command\n"));