From db03742cd33d6d54834bb138886a4f84bc452a85 Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Mon, 12 Dec 2016 17:45:22 +0200 Subject: xinerama: Swap the response in RRXineramaWriteMonitor Reviewed-by: Adam Jackson --- randr/rrxinerama.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'randr') 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); } -- cgit v1.2.3