Skip to content

fix: use SafeSignal in ipc in order to not call GTK funcs from a thread#4854

Merged
Alexays merged 1 commit intoAlexays:masterfrom
sliedes:ipc-safesignal
Feb 13, 2026
Merged

fix: use SafeSignal in ipc in order to not call GTK funcs from a thread#4854
Alexays merged 1 commit intoAlexays:masterfrom
sliedes:ipc-safesignal

Conversation

@sliedes
Copy link
Contributor

@sliedes sliedes commented Feb 12, 2026

As analyzed in #4777 (comment), the current logic calls GTK functions in a thread-unsafe way. I think the fix probably is just to switch the client IPC to use SafeSignal instead of sigc::signal.

I have tested that this code builds and that swaybar at least starts seemingly correctly on my machine. I have not yet observed it long enough to tell if it really fixes the crashes.

Fixes #4751
Fixes #4777

@Alexays Alexays merged commit 9e57d75 into Alexays:master Feb 13, 2026
9 checks passed
@Alexays
Copy link
Owner

Alexays commented Feb 13, 2026

Thanks!

@sliedes sliedes deleted the ipc-safesignal branch February 14, 2026 03:23
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.

Segfault in waybar::modules::sway::Language::set_current_layout Waybar coredump on sway(Seems during settin language)

2 participants