xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 3 19:37:12 UTC 2024


 hw/xwayland/xwayland-screen.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3268a83ae18dc95548ad1970a117d34274466e37
Author: xurui <xurui at kylinos.cn>
Date:   Wed Jan 3 16:36:20 2024 +0800

    xwayland: Use do-while loop
    
    Signed-off-by: xurui <xurui at kylinos.cn>

diff --git a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c
index 41bf89d9f..099207855 100644
--- a/hw/xwayland/xwayland-screen.c
+++ b/hw/xwayland/xwayland-screen.c
@@ -687,9 +687,9 @@ xwl_screen_roundtrip(struct xwl_screen *xwl_screen)
 {
     int ret;
 
-    ret = wl_display_roundtrip(xwl_screen->display);
-    while (ret >= 0 && xwl_screen->expecting_event)
+    do {
         ret = wl_display_roundtrip(xwl_screen->display);
+    } while (ret >= 0 && xwl_screen->expecting_event);
 
     if (ret < 0)
         xwl_give_up("could not connect to wayland server\n");


More information about the xorg-commit mailing list