summaryrefslogtreecommitdiff
path: root/src/xrandr.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-23 09:33:47 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-23 10:20:50 +0100
commitf4e9c732dacdb40d2c4123e1a096bc48404f3b54 (patch)
treec5cb1e02fb2e0082fa1d5f6ca9f8f0d7eb876736 /src/xrandr.c
parentf6f6cd87e6175b203445e1245fb1fa282416ebca (diff)
downloadratpoison-f4e9c732dacdb40d2c4123e1a096bc48404f3b54.zip
Kill superflous var.
Diffstat (limited to 'src/xrandr.c')
-rw-r--r--src/xrandr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xrandr.c b/src/xrandr.c
index a8cef61..1425178 100644
--- a/src/xrandr.c
+++ b/src/xrandr.c
@@ -216,13 +216,13 @@ xrandr_crtc_change (XRRCrtcChangeNotifyEvent *ev)
void
xrandr_notify (XEvent *ev)
{
- int ev_code = xrandr_evbase + RRNotify;
XRRNotifyEvent *n_event;
XRROutputChangeNotifyEvent *o_event;
XRRCrtcChangeNotifyEvent *c_event;
- if (ev->type != ev_code)
+ if (ev->type != xrandr_evbase + RRNotify)
return;
+
PRINT_DEBUG (("--- Handling RRNotify ---\n"));
n_event = (XRRNotifyEvent *)ev;