summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorMichal Srb <msrb@suse.com>2016-12-12 17:45:22 +0200
committerAdam Jackson <ajax@redhat.com>2017-01-11 15:04:12 -0500
commitdb03742cd33d6d54834bb138886a4f84bc452a85 (patch)
tree0d9de232e258c8f6b43a858bb307c507031a02e9 /randr
parent862c1c43c10eda955db1440cc72ff0387e24a35f (diff)
xinerama: Swap the response in RRXineramaWriteMonitor
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'randr')
-rw-r--r--randr/rrxinerama.c7
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);
}