mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-16 05:00:28 +01:00
xwayland: Call register_damage depending on ensure_surface_for_window
Preparation for next commit.
This might change behaviour for non-InputOutput top-level windows.
ensure_surface_for_window getting called and returning non-NULL for
those would seem like a pre-existing bug though.
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1300>
(cherry picked from commit 07f6032627)
This commit is contained in:
parent
69c73ca83f
commit
a513c10dd5
1 changed files with 4 additions and 8 deletions
|
|
@ -1360,18 +1360,14 @@ xwl_realize_window(WindowPtr window)
|
|||
}
|
||||
}
|
||||
|
||||
if (xwl_screen->rootless ?
|
||||
(window->drawable.class == InputOutput &&
|
||||
window->parent == window->drawable.pScreen->root) :
|
||||
!window->parent) {
|
||||
if (!register_damage(window))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
xwl_window = ensure_surface_for_window(window);
|
||||
if (!xwl_window)
|
||||
return FALSE;
|
||||
|
||||
if (window == xwl_window->toplevel &&
|
||||
!window_get_damage(window))
|
||||
return register_damage(window);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue