Check: does binding xdg_wm_base at 6 change how often a covered or minimised window gets onUpdate under Mutter, sway and phoc? #198

Open
opened 2026-11-17 06:45:47 +00:00 by jorijnvdgraaf · 0 comments

Summary

Since c006519 xdg_wm_base is bound at the version the compositor offers, up to 6, where it was bound at 1. That is what lets a compositor send the suspended state. It also tells the compositor that this client knows suspended. If a compositor treats such clients differently, for instance by holding back the frame callbacks of a suspended window only from clients that can be told why, then a window driven by frame callbacks (updateInterval == 0) would stop getting onUpdate while it is covered or minimised, where at the base it kept getting them. Nothing shows that any compositor does this. Nothing shows that none does either: the question came up in the pre-push review and was left open. This issue is to check it.

Details

  • implementations/Crafter.Graphics-Device.cpp:326 at c006519: wl_registry_bind(registry, name, &xdg_wm_base_interface, std::min<std::uint32_t>(version, 6)).
  • The library itself does nothing with suspended but keep it on the window (Window::suspended, onToplevelState): the frame loop is unchanged.
  • What was seen: on KWin 6.8.0, the suite's window tests passed at c006519, WindowUpdateClock with its minimised window among them, and a WAYLAND_DEBUG=1 run shows the bind at 6 with wm_capabilities, configure_bounds and the configures arriving. Mutter, sway and phoc were not tried. phoc, read in its source, sends a frame done to a view that stops being visible and marks it suspended three seconds later.

Suggested check

Under a Mutter and a sway that offer xdg_wm_base 6, and on the phone's compositor: open a window that updates on frame callbacks, cover it with another window, then minimise it, and count onUpdate over a few seconds, at c006519 and at its base 005b04b. The same count at both means the bind changed nothing. A difference belongs in AGENTS.consumer.md beside suspended, and decides whether a suspended window should fall back to a timer.

## Summary Since c006519 `xdg_wm_base` is bound at the version the compositor offers, up to 6, where it was bound at 1. That is what lets a compositor send the `suspended` state. It also tells the compositor that this client knows `suspended`. If a compositor treats such clients differently, for instance by holding back the frame callbacks of a suspended window only from clients that can be told why, then a window driven by frame callbacks (`updateInterval == 0`) would stop getting `onUpdate` while it is covered or minimised, where at the base it kept getting them. Nothing shows that any compositor does this. Nothing shows that none does either: the question came up in the pre-push review and was left open. This issue is to check it. ## Details - `implementations/Crafter.Graphics-Device.cpp:326` at `c006519`: `wl_registry_bind(registry, name, &xdg_wm_base_interface, std::min<std::uint32_t>(version, 6))`. - The library itself does nothing with `suspended` but keep it on the window (`Window::suspended`, `onToplevelState`): the frame loop is unchanged. - What was seen: on KWin 6.8.0, the suite's window tests passed at `c006519`, `WindowUpdateClock` with its minimised window among them, and a `WAYLAND_DEBUG=1` run shows the bind at 6 with `wm_capabilities`, `configure_bounds` and the configures arriving. Mutter, sway and phoc were not tried. phoc, read in its source, sends a frame done to a view that stops being visible and marks it suspended three seconds later. ## Suggested check Under a Mutter and a sway that offer `xdg_wm_base` 6, and on the phone's compositor: open a window that updates on frame callbacks, cover it with another window, then minimise it, and count `onUpdate` over a few seconds, at `c006519` and at its base `005b04b`. The same count at both means the bind changed nothing. A difference belongs in `AGENTS.consumer.md` beside `suspended`, and decides whether a suspended window should fall back to a timer.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Catcrafts/Crafter.Graphics#198
No description provided.