diff options
author | Michal Srb <msrb@suse.com> | 2016-12-12 17:45:22 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-01-02 13:39:07 -0500 |
commit | c96c860b6420adf0d004707a323af30491a1d7d3 (patch) | |
tree | 625f2323b60ba90c176ec44c4a82746ad8650933 | |
parent | 05e19644250698aa126a60bc671e85425df784d1 (diff) |
xinerama: Swap the response in RRXineramaWriteMonitor
Reviewed-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | randr/rrxinerama.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/randr/rrxinerama.c b/randr/rrxinerama.c index b6e9586d7..8f499dfa9 100644 --- a/randr/rrxinerama.c +++ b/randr/rrxinerama.c @@ -260,6 +260,13 @@ RRXineramaWriteMonitor(ClientPtr client, RRMonitorPtr monitor) scratch.width = monitor->geometry.box.x2 - monitor->geometry.box.x1; scratch.height = monitor->geometry.box.y2 - monitor->geometry.box.y1; + if (client->swapped) { + swaps(&scratch.x_org); + swaps(&scratch.y_org); + swaps(&scratch.width); + swaps(&scratch.height); + } + WriteToClient(client, sz_XineramaScreenInfo, &scratch); } |