diff options
author | marha <marha@users.sourceforge.net> | 2010-12-01 06:54:34 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-12-01 06:54:34 +0000 |
commit | 30eaf03aef5847adb6da7efd4bbf4a4abaf5d738 (patch) | |
tree | 9096dda170059f36806901aee59b8cf2a839a9e9 /xorg-server/composite/compwindow.c | |
parent | 57818d0fe4f7cf94279909f03ec11b326b284f1e (diff) | |
download | vcxsrv-30eaf03aef5847adb6da7efd4bbf4a4abaf5d738.tar.gz vcxsrv-30eaf03aef5847adb6da7efd4bbf4a4abaf5d738.tar.bz2 vcxsrv-30eaf03aef5847adb6da7efd4bbf4a4abaf5d738.zip |
xserver libX11 libxcb update 1/12/2010
Diffstat (limited to 'xorg-server/composite/compwindow.c')
-rw-r--r-- | xorg-server/composite/compwindow.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/xorg-server/composite/compwindow.c b/xorg-server/composite/compwindow.c index b0afc3f9a..539c1aa23 100644 --- a/xorg-server/composite/compwindow.c +++ b/xorg-server/composite/compwindow.c @@ -47,6 +47,10 @@ #include "compint.h"
+#ifdef PANORAMIX
+#include "panoramiXsrv.h"
+#endif
+
#ifdef COMPOSITE_DEBUG
static int
compCheckWindow (WindowPtr pWin, pointer data)
@@ -172,16 +176,26 @@ updateOverlayWindow(ScreenPtr pScreen) CompScreenPtr cs;
WindowPtr pWin; /* overlay window */
XID vlist[2];
+ int w = pScreen->width;
+ int h = pScreen->height;
+
+#ifdef PANORAMIX
+ if (!noPanoramiXExtension)
+ {
+ w = PanoramiXPixWidth;
+ h = PanoramiXPixHeight;
+ }
+#endif
cs = GetCompScreen(pScreen);
if ((pWin = cs->pOverlayWin) != NULL) {
- if ((pWin->drawable.width == pScreen->width) &&
- (pWin->drawable.height == pScreen->height))
+ if ((pWin->drawable.width == w) &&
+ (pWin->drawable.height == h))
return Success;
/* Let's resize the overlay window. */
- vlist[0] = pScreen->width;
- vlist[1] = pScreen->height;
+ vlist[0] = w;
+ vlist[1] = h;
return ConfigureWindow(pWin, CWWidth | CWHeight, vlist, wClient(pWin));
}
|