Commit 53e2c395 authored by Lionel Landwerlin's avatar Lionel Landwerlin
Browse files

xwayland: don't reject present request on unmapped windows

This match the behavior of the modesetting server.
Signed-off-by: Lionel Landwerlin's avatarLionel Landwerlin <>
parent 6ef025a8
Pipeline #8033 passed with stage
in 1 minute and 10 seconds
...@@ -363,8 +363,19 @@ xwl_present_queue_vblank(WindowPtr present_window, ...@@ -363,8 +363,19 @@ xwl_present_queue_vblank(WindowPtr present_window,
struct xwl_present_window *xwl_present_window = xwl_present_window_get_priv(present_window); struct xwl_present_window *xwl_present_window = xwl_present_window_get_priv(present_window);
struct xwl_present_event *event; struct xwl_present_event *event;
if (!xwl_window) if (!xwl_window) {
return BadMatch; /* If there is not xwl_window that means the window hasn't be
* realized yet and has no backing. So just notify that the
* present was successfull straight away. This is somewhat of
* a liberty we take here, but it matches the behavior of the
* modesetting server (i.e. no error returned).
return Success;
if (xwl_window->present_window && if (xwl_window->present_window &&
xwl_window->present_window != present_window) xwl_window->present_window != present_window)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment