aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/dix/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/dix/window.c')
-rw-r--r--xorg-server/dix/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xorg-server/dix/window.c b/xorg-server/dix/window.c
index caff1cbff..e9d90aba4 100644
--- a/xorg-server/dix/window.c
+++ b/xorg-server/dix/window.c
@@ -3042,9 +3042,12 @@ NotClippedByChildren(WindowPtr pWin)
void
SendVisibilityNotify(WindowPtr pWin)
{
+#ifndef NO_XINERAMA_PORT
+ unsigned int visibility;
+#endif
xEvent event;
#ifndef NO_XINERAMA_PORT
- unsigned int visibility = pWin->visibility;
+ visibility = pWin->visibility;
#endif
if (!MapUnmapEventsEnabled(pWin))
return;