xwayland/present: Update surface window again if manual redirect fails

Even if the manual redirect didn't result in the surface window we
wanted, it might be different again without the redirect.

I don't know of any specific scenario hitting this though, it's more of
a theoretical safeguard.

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1637>
This commit is contained in:
Michel Dänzer 2024-08-05 18:48:35 +02:00 committed by Michel Dänzer
parent e6c649e6e6
commit 23dde0860c

View File

@ -1308,6 +1308,7 @@ xwl_present_maybe_redirect_window(WindowPtr window)
compUnredirectWindow(serverClient, window, CompositeRedirectManual); compUnredirectWindow(serverClient, window, CompositeRedirectManual);
xwl_present_window->redirected = FALSE; xwl_present_window->redirected = FALSE;
xwl_present_window->redirect_failed = TRUE; xwl_present_window->redirect_failed = TRUE;
xwl_window_update_surface_window(xwl_window);
return FALSE; return FALSE;
} }