mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-04 08:20:28 +01:00
Don't remap windows for SaveSetUnmap
Since ReparentWindow() does a unmap/map pair for windows that are already mapped, for saveset windows with SaveSetUnmap, we must unmap the window before calling ReparentWindow() to avoid the generation of MapRequest events, and so forth.
This commit is contained in:
parent
0bb317a78b
commit
722c51960d
1 changed files with 5 additions and 0 deletions
|
|
@ -3026,6 +3026,11 @@ HandleSaveSet(ClientPtr client)
|
|||
{
|
||||
if (pParent != pWin->parent)
|
||||
{
|
||||
#ifdef XFIXES
|
||||
/* unmap first so that ReparentWindow doesn't remap */
|
||||
if (!SaveSetRemap (client->saveSet[j]))
|
||||
UnmapWindow(pWin, FALSE);
|
||||
#endif
|
||||
ReparentWindow(pWin, pParent,
|
||||
pWin->drawable.x - wBorderWidth (pWin) - pParent->drawable.x,
|
||||
pWin->drawable.y - wBorderWidth (pWin) - pParent->drawable.y,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue