mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 04:00:13 +01:00
xwayland/present: Check allow_commits in xwl_present_flip
We're not supposed to call wl_surface_commit while
xwl_window->allow_commits is false. Bailing results in falling back to
a copy.
Noticed by inspection while looking into an issue which turned out to be
due to something else.
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1764
(cherry picked from commit 56ba0b2a5f)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1766>
This commit is contained in:
parent
f340f082b8
commit
7c25024879
1 changed files with 1 additions and 1 deletions
|
|
@ -870,7 +870,7 @@ xwl_present_flip(present_vblank_ptr vblank, RegionPtr damage)
|
|||
struct xwl_present_event *event = xwl_present_event_from_vblank(vblank);
|
||||
Bool implicit_sync = TRUE;
|
||||
|
||||
if (!xwl_window)
|
||||
if (!xwl_window || !xwl_window->allow_commits)
|
||||
return FALSE;
|
||||
|
||||
buffer = xwl_pixmap_get_wl_buffer(pixmap);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue