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

Ability to listen on surface Unfocus events #98

Closed
Exidex opened this issue Dec 2, 2024 · 4 comments
Closed

Ability to listen on surface Unfocus events #98

Exidex opened this issue Dec 2, 2024 · 4 comments

Comments

@Exidex
Copy link
Contributor

Exidex commented Dec 2, 2024

PopOS's Iced fork has an ability to listen on unfocus events, e.g. clicking outside of surface, which is useful for application launcher-like applications

See implementation in PopOS's fork: https://github.com/pop-os/iced/blob/5a3803923ee13388ef8638675f237998443aa45c/winit/src/platform_specific/wayland/sctk_event.rs#L460-L470

@Decodetalkers
Copy link
Collaborator

Emm, iced fork patch the iced::event, but we are not fork, so.. but I have already submit a pr for iced

iced-rs/iced#2658

@Exidex
Copy link
Contributor Author

Exidex commented Dec 3, 2024

@Decodetalkers while not a general solution, you could probably reuse iced window Unfocus event https://github.com/iced-rs/iced/blob/master/core/src/window/event.rs#L40-L43

@Decodetalkers
Copy link
Collaborator

I have already handle the Unfocus event now.. Emm

@Exidex
Copy link
Contributor Author

Exidex commented Dec 4, 2024

Great! Thanks for doing it so fast

@Exidex Exidex closed this as completed Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants