mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 06:15:58 +00:00
* fix(gamescope): avoid retaining pointer cursor SHM commits * test(gamescope): verify cursor release and pending window control * test(gamescope): keep live probe inert during test discovery * test: match Gamescope process name in cursor probe * test: clarify cursor-role probe serial behavior --------- Co-authored-by: siyuan.qsy <siyuan.qsy@alibaba-inc.com> Co-authored-by: xXJsonDeruloXx <danielhimebauch@gmail.com>
16 lines
613 B
Diff
16 lines
613 B
Diff
--- a/src/wlserver.cpp
|
|
+++ b/src/wlserver.cpp
|
|
@@ -203,6 +203,12 @@
|
|
}
|
|
|
|
void xwayland_surface_commit(struct wlr_surface *wlr_surface) {
|
|
+ // Cursor surfaces never acquire an X11/xdg window association. Keeping their
|
|
+ // commits in g_PendingCommits pins every old SHM buffer until the cursor
|
|
+ // surface is destroyed. X11 cursor images are handled by MouseCursor.
|
|
+ if ( wlr_surface->role && strcmp( wlr_surface->role->name, "wl_pointer-cursor" ) == 0 )
|
|
+ return;
|
|
+
|
|
wlr_surface->current.committed = 0;
|
|
|
|
wlserver_x11_surface_info *wlserver_x11_surface_info = get_wl_surface_info(wlr_surface)->x11_surface;
|