mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 01:10:06 +01:00
dix: Skip more code in SetRootClip for ROOT_CLIP_INPUT_ONLY
Despitee957a2e5dd("dix: Add hybrid full-size/empty-clip mode to SetRootClip"), I was still seeing all X11 client windows flashing when the root window size changes with rootless Xwayland (e.g. due to hotplugging a monitor). Skipping this code for ROOT_CLIP_INPUT_ONLY fixes the issue for me. (cherry picked from commitf778b56a74)
This commit is contained in:
parent
8b739579ed
commit
42559ea039
1 changed files with 2 additions and 2 deletions
|
|
@ -3642,7 +3642,7 @@ SetRootClip(ScreenPtr pScreen, int enable)
|
|||
if (!pWin)
|
||||
return;
|
||||
WasViewable = (Bool) (pWin->viewable);
|
||||
if (WasViewable) {
|
||||
if (WasViewable && mode != ROOT_CLIP_INPUT_ONLY) {
|
||||
for (pChild = pWin->firstChild; pChild; pChild = pChild->nextSib) {
|
||||
(void) (*pScreen->MarkOverlappedWindows) (pChild,
|
||||
pChild, &pLayerWin);
|
||||
|
|
@ -3696,7 +3696,7 @@ SetRootClip(ScreenPtr pScreen, int enable)
|
|||
|
||||
ResizeChildrenWinSize(pWin, 0, 0, 0, 0);
|
||||
|
||||
if (WasViewable) {
|
||||
if (WasViewable && mode != ROOT_CLIP_INPUT_ONLY) {
|
||||
if (pWin->firstChild) {
|
||||
anyMarked |= (*pScreen->MarkOverlappedWindows) (pWin->firstChild,
|
||||
pWin->firstChild,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue