summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomas Carnecky <tom@dbservice.com>2008-08-13 10:24:11 -0400
committerAdam Jackson <ajax@redhat.com>2008-08-13 10:24:11 -0400
commitf176b2bda103f6f38aabab8207f47a02cc797659 (patch)
treef9680e207af08a552ea4bfa40ecd2b14da6cee55 /src
parentd631e453d62104b4a4afdcf0b34e6f3aefd62644 (diff)
RRNotify subevents have 'window' at different offsets.
Diffstat (limited to 'src')
-rw-r--r--src/Xrandr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Xrandr.c b/src/Xrandr.c
index 1629350..e3f9931 100644
--- a/src/Xrandr.c
+++ b/src/Xrandr.c
@@ -92,12 +92,12 @@ static Bool XRRWireToEvent(Display *dpy, XEvent *event, xEvent *wire)
aevent->serial = _XSetLastRequestRead(dpy, (xGenericReply *) wire);
aevent->send_event = (awire->type & 0x80) != 0;
aevent->display = dpy;
- aevent->window = awire->window;
aevent->subtype = awire->subCode;
switch (aevent->subtype) {
case RRNotify_OutputChange: {
XRROutputChangeNotifyEvent *aevent = (XRROutputChangeNotifyEvent *) event;
xRROutputChangeNotifyEvent *awire = (xRROutputChangeNotifyEvent *) wire;
+ aevent->window = awire->window;
aevent->output = awire->output;
aevent->crtc = awire->crtc;
aevent->mode = awire->mode;
@@ -109,6 +109,7 @@ static Bool XRRWireToEvent(Display *dpy, XEvent *event, xEvent *wire)
case RRNotify_CrtcChange: {
XRRCrtcChangeNotifyEvent *aevent = (XRRCrtcChangeNotifyEvent *) event;
xRRCrtcChangeNotifyEvent *awire = (xRRCrtcChangeNotifyEvent *) wire;
+ aevent->window = awire->window;
aevent->crtc = awire->crtc;
aevent->mode = awire->mode;
aevent->rotation = awire->rotation;
@@ -121,6 +122,7 @@ static Bool XRRWireToEvent(Display *dpy, XEvent *event, xEvent *wire)
case RRNotify_OutputProperty: {
XRROutputPropertyNotifyEvent *aevent = (XRROutputPropertyNotifyEvent *) event;
xRROutputPropertyNotifyEvent *awire = (xRROutputPropertyNotifyEvent *) wire;
+ aevent->window = awire->window;
aevent->output = awire->output;
aevent->property = awire->atom;
aevent->timestamp = awire->timestamp;