Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyprland/window: fix crash when no return from socket #3440

Merged
merged 5 commits into from
Jul 15, 2024

Conversation

khaneliman
Copy link
Contributor

@khaneliman khaneliman commented Jul 15, 2024

Gracefully handle lack of response from the IPC. If socket isn't available, we already log the IPC isn't running. We dont need to crash program just because we couldn't get responses. We can just return an empty object.

Tested this running on sway and Hyprland. No longer crashes on sway and appears to work the same on Hyprland.

Also added some clang format and build fixes.

Gracefully handle lack of response from the IPC. If socket isn't
available, we already log the IPC isn't running. We dont need to crash
program just because we couldn't get responses. We can just return an
empty object.
Fixes the gentoo build
@Alexays Alexays merged commit 5f3a9d9 into Alexays:master Jul 15, 2024
8 of 9 checks passed
@khaneliman khaneliman deleted the hyprland-fix branch July 15, 2024 17:16
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.

2 participants