summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-11-25 19:35:17 +0200
committerTimo Aaltonen <tjaalton@cc.hut.fi>2008-11-25 22:35:47 +0200
commitc8472a74441838e16d0d3414db1fa7fe996868a9 (patch)
tree3c2c8498ca6f72ffa389d35edb9af035132b8114 /dix
parent88297558aada44bc714ad57adbeed3740aaadee5 (diff)
Do not send VisibilityNotify events when MapUnmapEvents are disabled
This prevents a protocol visible side-effect (XVisibilityEvent) on XCompositeRedirectWindow() followed by a XCompositeUnredirectWindow(). The problem shows up in gnome-screensaver with compiz and "unredirect fullscreen windows" enable. A VisibilityNotify event is generated (first with obscured and than with unobscured) when the window swithces from redirected to unredirected. https://bugs.freedesktop.org/show_bug.cgi?id=18133 http://launchpad.net/bugs/278112
Diffstat (limited to 'dix')
-rw-r--r--dix/window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/window.c b/dix/window.c
index ff5ba4acc..c31fa875b 100644
--- a/dix/window.c
+++ b/dix/window.c
@@ -3091,6 +3091,8 @@ void
SendVisibilityNotify(WindowPtr pWin)
{
xEvent event;
+ if (!MapUnmapEventsEnabled(pWin))
+ return;
#ifndef NO_XINERAMA_PORT
unsigned int visibility = pWin->visibility;
#endif