Skip to content

Comments

gnome: interpret {} as valid state with no windows focused#69

Merged
2e3s merged 1 commit into2e3s:mainfrom
NathanBaulch:emptyjson
Feb 23, 2026
Merged

gnome: interpret {} as valid state with no windows focused#69
2e3s merged 1 commit into2e3s:mainfrom
NathanBaulch:emptyjson

Conversation

@NathanBaulch
Copy link
Contributor

This is a very basic fix for #50 where awatcher closes if no windows are focused in the first ~10 seconds of a Gnome + Wayland session. Accepting {} as valid JSON data representing no focused windows is the workaround. Another equally simple alternative might be to make the fields on the WindowData struct optional.

I've tested this locally and it works, but I'm no expert in this area so I can't comment on possible unintended side-effects.

I'm not a Rust developer so I wont take it personally if this PR is rejected, so long as the underlying issue is fixed. 🙏

@NathanBaulch
Copy link
Contributor Author

@2e3s
Copy link
Owner

2e3s commented Feb 23, 2026

Thanks! I'll fix the warnings and roll out with another fix

@2e3s 2e3s merged commit ef1fe24 into 2e3s:main Feb 23, 2026
3 of 4 checks passed
@NathanBaulch NathanBaulch deleted the emptyjson branch February 23, 2026 01:29
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