mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 10:10:05 +01:00
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
This commit is contained in:
parent
88297558aa
commit
c8472a7444
1 changed files with 2 additions and 0 deletions
|
|
@ -3091,6 +3091,8 @@ void
|
|||
SendVisibilityNotify(WindowPtr pWin)
|
||||
{
|
||||
xEvent event;
|
||||
if (!MapUnmapEventsEnabled(pWin))
|
||||
return;
|
||||
#ifndef NO_XINERAMA_PORT
|
||||
unsigned int visibility = pWin->visibility;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue