diff options
author | Keith Packard <keithp@neko.keithp.com> | 2007-07-03 09:58:09 -0700 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2007-07-03 09:58:09 -0700 |
commit | 126143add5349fc34488b23d54d1bdcc7e8847b9 (patch) | |
tree | c98e4248b2f7a78930ef5c202b6f78a9598a74f7 /src | |
parent | 3e753542bcf0fd49fe977e56b7ab7e540bbd4282 (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/Xrandr.c | 4 |
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; } |