summaryrefslogtreecommitdiff
path: root/hw/dmx/dmxrandr.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/dmx/dmxrandr.c')
-rw-r--r--hw/dmx/dmxrandr.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/hw/dmx/dmxrandr.c b/hw/dmx/dmxrandr.c
index 18ba73396..a4318aa21 100644
--- a/hw/dmx/dmxrandr.c
+++ b/hw/dmx/dmxrandr.c
@@ -710,7 +710,9 @@ dmxRRScreenSetSize (ScreenPtr pScreen,
int i;
for (i = 0; i < dmxNumScreens; i++)
- dmxResizeRootWindow (WindowTable[i], 0, 0, width, height);
+ dmxResizeRootWindow (WindowTable[i],
+ dmxScreens[i].rootX, dmxScreens[i].rootY,
+ width, height);
for (i = 0; i < dmxNumScreens; i++)
dmxUpdateScreenResources (screenInfo.screens[i],
@@ -723,7 +725,10 @@ dmxRRScreenSetSize (ScreenPtr pScreen,
else
#endif
{
- dmxResizeRootWindow (WindowTable[pScreen->myNum], 0, 0, width, height);
+ dmxResizeRootWindow (WindowTable[pScreen->myNum],
+ dmxScreens[pScreen->myNum].rootX,
+ dmxScreens[pScreen->myNum].rootY,
+ width, height);
dmxUpdateScreenResources (pScreen, 0, 0, width, height);
}