summaryrefslogtreecommitdiff
path: root/randr/randr.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@guitar.keithp.com>2006-12-21 23:50:39 -0800
committerDave Airlie <airlied@linux.ie>2007-01-02 09:18:50 +1100
commit953a9ef949b4c57d28daeec57031fe1ce368c27c (patch)
tree90f9649e97dea92572b60b77dd57219d3b8fb2f8 /randr/randr.c
parente79602fca2f2cced66136729cdda4d356b0bdda0 (diff)
Track physical screen size and send out updates when that changes.
Events and internal data structures need to be updated whenever the physical or pixel size of the screen changes. The code was ignoring the physical size, so changing only that would not be registered anywhere. (cherry picked from f42e3cea236fa0091ed398a818fc8e17b0e1b3df commit)
Diffstat (limited to 'randr/randr.c')
-rw-r--r--randr/randr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/randr/randr.c b/randr/randr.c
index 1470035ca..5fa9baf84 100644
--- a/randr/randr.c
+++ b/randr/randr.c
@@ -243,6 +243,10 @@ Bool RRScreenInit(ScreenPtr pScreen)
pScrPriv->maxWidth = pScrPriv->minWidth = pScreen->width;
pScrPriv->maxHeight = pScrPriv->minHeight = pScreen->height;
+ pScrPriv->width = pScreen->width;
+ pScrPriv->height = pScreen->height;
+ pScrPriv->mmWidth = pScreen->mmWidth;
+ pScrPriv->mmHeight = pScreen->mmHeight;
#if RANDR_12_INTERFACE
pScrPriv->rrScreenSetSize = NULL;
pScrPriv->rrCrtcSet = NULL;