Skip to content

Clear the FIFO barriers of windows drawn on no output - #236

Open
sachahjkl wants to merge 2 commits into
bea4dev:mainfrom
sachahjkl:fix/fifo-hidden-windows
Open

sachahjkl wants to merge 2 commits into
bea4dev:mainfrom
sachahjkl:fix/fifo-hidden-windows

Conversation

@sachahjkl

Copy link
Copy Markdown
Contributor

signal_post_repaint_barriers only cleared the wp_fifo_v1 barriers of windows drawn on the output being repainted (window_frame_processing_applies_to_output). A window the config hides (visible(false), idle, minimized, a hidden tab) is drawn on no output, so its barrier stayed set for good. A client that keeps drawing while hidden with a FIFO present mode (set_barrier on one commit, wait_barrier on the next, as the NVIDIA and Mesa Vulkan drivers do) then waits on that barrier forever: here a clipboard manager froze when it redrew its hidden window after a copy.

Windows drawn on no output now have their barriers cleared at each output refresh as well, so a hidden FIFO client is paced by the refresh instead of blocked. Windows drawn on an output are handled as before.

Tested: a new integration test, cargo test -p shojiwm_rs --test fifo_hidden_window: a window hidden by the config commits with set_barrier, then commits a change with wait_barrier; after signal_post_repaint_barriers the change is applied. It fails without the change (the second commit stays blocked) and passes with it.

signal_post_repaint_barriers only cleared the wp_fifo_v1 barriers of windows
drawn on the repainted output. A window the config hides (minimized, a hidden
tab, a window hidden by its program) is drawn on none, so its barrier stayed
set: a client that draws while hidden with a FIFO present mode then waited
for it for good and froze (a clipboard manager redrawing after a copy). Such
windows now have their barriers cleared at each output refresh.
@sachahjkl
sachahjkl force-pushed the fix/fifo-hidden-windows branch from b27ac93 to 5a8c385 Compare November 16, 2026 21:45

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant