Merge branch 'github/fork/imirkin/pause-render' into 'master'

backend/x11: only send frames when the window is visible

Closes #2675

See merge request wlroots/wlroots!2682
This commit is contained in:
Simon Ser 2026-03-08 05:36:43 +00:00
commit 1467218b64
3 changed files with 71 additions and 5 deletions

View file

@ -47,6 +47,8 @@ struct wlr_x11_output {
pixman_region32_t exposed;
uint64_t last_msc;
bool mapped;
bool hidden;
struct {
struct wlr_swapchain *swapchain;
@ -94,6 +96,8 @@ struct wlr_x11_backend {
xcb_atom_t wm_protocols;
xcb_atom_t wm_delete_window;
xcb_atom_t net_wm_name;
xcb_atom_t net_wm_state;
xcb_atom_t net_wm_state_hidden;
xcb_atom_t utf8_string;
xcb_atom_t variable_refresh;
} atoms;