sf-compositor: the protocols gamescope needs, so Steam can start

gamescope (which hosts the Steam client) refuses to run nested without
wp_presentation, zwp_relative_pointer_manager_v1 and
zwp_pointer_constraints_v1 ("Couldn't create Wayland objects"), so Steam
quit right away.

- presentation-time with real feedback: on DRM with the page flip's
  kernel timestamp and sequence, on winit when the frame is submitted;
- relative pointer and pointer constraints (the seat gets a wl_pointer;
  no pointer device is attached, the cursor theme is blank).

Tested in the install VM: gamescope now gets past the Wayland setup; it
stops later only because the VM has no hardware Vulkan (llvmpipe lacks
VK_EXT_physical_device_drm). YouTube (Chromium, which uses presentation
feedback too) still renders and takes input.

Shell 0.3.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-10-25 20:20:31 +01:00
parent 62c3056f52
commit 54cdaf5e35
6 changed files with 119 additions and 30 deletions

16
Cargo.lock generated
View File

@@ -4745,7 +4745,7 @@ dependencies = [
[[package]]
name = "sf-compositor"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"sf-ipc",
@@ -4756,7 +4756,7 @@ dependencies = [
[[package]]
name = "sf-core"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"env_logger",
@@ -4771,7 +4771,7 @@ dependencies = [
[[package]]
name = "sf-dial"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"log",
@@ -4781,7 +4781,7 @@ dependencies = [
[[package]]
name = "sf-ipc"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"log",
@@ -4793,7 +4793,7 @@ dependencies = [
[[package]]
name = "sf-launcher"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"chrono",
@@ -4813,7 +4813,7 @@ dependencies = [
[[package]]
name = "sf-miracast"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"env_logger",
@@ -4825,7 +4825,7 @@ dependencies = [
[[package]]
name = "sf-remote"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"bluer",
@@ -4851,7 +4851,7 @@ dependencies = [
[[package]]
name = "sf-update"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"anyhow",
"base64 0.22.1",