mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 22:40:12 +01:00
XQuartz: Re-query dixScreenOrigins as the value could've changed.
Fix a regression in9c9c3a85b0Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Acked-by: Adam Jackson <ajax@redhat.com> (cherry picked from commit28a5f14b40)
This commit is contained in:
parent
68319e7f07
commit
49a2b55e0e
1 changed files with 5 additions and 2 deletions
|
|
@ -268,8 +268,11 @@ void QuartzUpdateScreens(void) {
|
|||
DarwinAdjustScreenOrigins(&screenInfo);
|
||||
quartzProcs->UpdateScreen(pScreen);
|
||||
|
||||
sx = x + darwinMainScreenX;
|
||||
sy = y + darwinMainScreenY;
|
||||
/* DarwinAdjustScreenOrigins or UpdateScreen may change dixScreenOrigins,
|
||||
* so use it rather than x/y
|
||||
*/
|
||||
sx = dixScreenOrigins[pScreen->myNum].x + darwinMainScreenX;
|
||||
sy = dixScreenOrigins[pScreen->myNum].y + darwinMainScreenY;
|
||||
|
||||
/* Adjust the root window. */
|
||||
pRoot = WindowTable[pScreen->myNum];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue