Skip to content

Fix timeout created by most recent gtk-layer-shell release when creating bars for multiple monitors.#4984

Open
Mervius wants to merge 1 commit intoAlexays:masterfrom
Mervius:master
Open

Fix timeout created by most recent gtk-layer-shell release when creating bars for multiple monitors.#4984
Mervius wants to merge 1 commit intoAlexays:masterfrom
Mervius:master

Conversation

@Mervius
Copy link
Copy Markdown

@Mervius Mervius commented Apr 10, 2026

Attempts to fix #4978

I do not think I am great at C++, so this might be terrible, but this appears to work fine. At the very least, if this is bad, it is an example of the base steps needed to fix the problem.

This first gathers all the monitor information before creating any bars rather than creating them each individually per each .done

@The-Ludwig
Copy link
Copy Markdown

Can confirm, this works for me on sway and fixes the issue!

@Mervius
Copy link
Copy Markdown
Author

Mervius commented Apr 11, 2026

This might need testing for it it still interacts properly with monitor hotplugging, resizing, and position changes.
I think it should, but I'm not certain. hotplugging appears to work for me. I could in theory seem some weirdness if a monitor change happens twice in quick succession with the same monitor

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.

gtk-layer-shell 0.10.1 causes waybar to time out when attempting to open on more than two monitors.

2 participants