[vlc-commits] [Git][videolan/vlc][master] qt: wayland: commit the parent surface as well in `CommitSurface()`

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Sep 18 13:15:31 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
7865cee6 by Fatih Uzunoglu at 2026-09-18T12:02:05+00:00
qt: wayland: commit the parent surface as well in `CommitSurface()`

Not doing so causes visible glitch when switching from pip player
to the main player, or vice versa.

- - - - -


1 changed file:

- modules/gui/qt/maininterface/compositor_wayland_module.c


Changes:

=====================================
modules/gui/qt/maininterface/compositor_wayland_module.c
=====================================
@@ -372,10 +372,11 @@ static void CommitSurface(struct qtwayland_t* obj)
     qtwayland_priv_t* sys = (qtwayland_priv_t*)obj->p_sys;
     assert(sys);
 
-    if (!sys->video_surface)
+    if (!sys->video_surface || !sys->interface_surface)
         return;
 
     wl_surface_commit(sys->video_surface);
+    wl_surface_commit(sys->interface_surface);
 }
 
 static void Close(qtwayland_t* obj)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7865cee6b5a7ac158732383bccf1f0f65caf3582

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7865cee6b5a7ac158732383bccf1f0f65caf3582
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list