Skip to content

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

Merged
Alexays merged 5 commits into
Alexays:masterfrom
khaneliman:hyprland-fix
Jul 15, 2024
Merged

Alexays merged 5 commits into
Alexays:masterfrom
khaneliman:hyprland-fix

Conversation

@khaneliman

@khaneliman khaneliman commented Jul 15, 2024

Copy link
Copy Markdown
Contributor

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
@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