summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2007-07-03 09:58:09 -0700
committerKeith Packard <keithp@neko.keithp.com>2007-07-03 09:58:09 -0700
commit126143add5349fc34488b23d54d1bdcc7e8847b9 (patch)
treec98e4248b2f7a78930ef5c202b6f78a9598a74f7
parent3e753542bcf0fd49fe977e56b7ab7e540bbd4282 (diff)
CrtcChange event format conversion was using 'height' for 'width'.
CrtcChange events were getting the source 'height' value stored in the 'width' target in both conversion directions.
-rw-r--r--src/Xrandr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xrandr.c b/src/Xrandr.c
index f8bdf02..fdaa80d 100644
--- a/src/Xrandr.c
+++ b/src/Xrandr.c
@@ -116,7 +116,7 @@ static Bool XRRWireToEvent(Display *dpy, XEvent *event, xEvent *wire)
aevent->rotation = awire->rotation;
aevent->x = awire->x;
aevent->y = awire->y;
- aevent->width = awire->height;
+ aevent->width = awire->width;
aevent->height = awire->height;
return True;
}
@@ -191,7 +191,7 @@ static Status XRREventToWire(Display *dpy, XEvent *event, xEvent *wire)
awire->rotation = aevent->rotation;
awire->x = aevent->x;
awire->y = aevent->y;
- awire->width = aevent->height;
+ awire->width = aevent->width;
awire->height = aevent->height;
return True;
}