diff options
author | Michal Srb <msrb@suse.com> | 2017-03-10 14:16:26 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-04-03 20:40:58 +0200 |
commit | f34eff0a29191a2b680905776476a3c49b841e4e (patch) | |
tree | 06dfc6d927cfe1b85c7360f202ab607d596a2535 /nx-X11/programs/Xserver/randr | |
parent | 4e0e7c4727ca6b1125895a149dbb42d2e12b4a63 (diff) | |
download | nx-libs-f34eff0a29191a2b680905776476a3c49b841e4e.tar.gz nx-libs-f34eff0a29191a2b680905776476a3c49b841e4e.tar.bz2 nx-libs-f34eff0a29191a2b680905776476a3c49b841e4e.zip |
xinerama: Swap the response in RRXineramaWriteMonitor
Backported from X.org:
commit c96c860b6420adf0d004707a323af30491a1d7d3
Author: Michal Srb <msrb@suse.com>
Date: Mon Dec 12 17:45:22 2016 +0200
xinerama: Swap the response in RRXineramaWriteMonitor
Reviewed-by: Adam Jackson <ajax@redhat.com>
Backported-to-NX-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'nx-X11/programs/Xserver/randr')
-rw-r--r-- | nx-X11/programs/Xserver/randr/rrxinerama.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/randr/rrxinerama.c b/nx-X11/programs/Xserver/randr/rrxinerama.c index d863897a7..b75b2ace9 100644 --- a/nx-X11/programs/Xserver/randr/rrxinerama.c +++ b/nx-X11/programs/Xserver/randr/rrxinerama.c @@ -303,6 +303,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); } |