Check: does binding xdg_wm_base at 6 change how often a covered or minimised window gets onUpdate under Mutter, sway and phoc? #198
Labels
No labels
claude:blocked
claude:done
claude:failed
claude:in-progress
claude:ready
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Catcrafts/Crafter.Graphics#198
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Since
c006519xdg_wm_baseis bound at the version the compositor offers, up to 6, where it was bound at 1. That is what lets a compositor send thesuspendedstate. It also tells the compositor that this client knowssuspended. 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 gettingonUpdatewhile 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:326atc006519:wl_registry_bind(registry, name, &xdg_wm_base_interface, std::min<std::uint32_t>(version, 6)).suspendedbut keep it on the window (Window::suspended,onToplevelState): the frame loop is unchanged.c006519,WindowUpdateClockwith its minimised window among them, and aWAYLAND_DEBUG=1run shows the bind at 6 withwm_capabilities,configure_boundsand 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_base6, and on the phone's compositor: open a window that updates on frame callbacks, cover it with another window, then minimise it, and countonUpdateover a few seconds, atc006519and at its base005b04b. The same count at both means the bind changed nothing. A difference belongs inAGENTS.consumer.mdbesidesuspended, and decides whether a suspended window should fall back to a timer.