mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-03 18:18:06 +02:00
xwayland: Use correct xwl_window lookup function in xwl_set_shape
In xwl_set_shape(), xwl_window_set_input_region() should be called only when the input shape of the toplevel window changes. However, given that xwl_window_from_window() is going to walk the ancestor tree until it finds an xwl_window, that lookup function cannot be used. Instead, xwl_window_get() should be used. It's going to return a valid xwl_window object iff the specified window has one associated with it. Fixes:a4ed100c0- xwayland: Set wl_surface input region Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1672 Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Signed-off-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1516> (cherry picked from commit8c2b9f4e71)
This commit is contained in:
parent
ebb2929b2d
commit
5546c913b3
1 changed files with 1 additions and 1 deletions
|
|
@ -338,7 +338,7 @@ xwl_set_shape(WindowPtr window,
|
|||
struct xwl_window *xwl_window;
|
||||
|
||||
xwl_screen = xwl_screen_get(screen);
|
||||
xwl_window = xwl_window_from_window(window);
|
||||
xwl_window = xwl_window_get(window);
|
||||
|
||||
screen->SetShape = xwl_screen->SetShape;
|
||||
(*screen->SetShape) (window, kind);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue