-
Notifications
You must be signed in to change notification settings - Fork 615
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
Adds the ability to disable/enable window interactions #6694
base: master
Are you sure you want to change the base?
Conversation
I'm wondering if that's really the right API to create modal dialog. |
With wayland + portals we will also need a way to register external windows as "modal windows" on top of application windows. So maybe we can pass in a optional (os-) window handle or something instead of a bool? E.g. file selection in a program using a portal can pop up a file dialog that logically belongs to the application asking for a file, but is actually a different process providing the window. That needs to be handled properly to make sure the right windows get selected when switching between applications. Kai-Uwe blogged about KDE doing this recently: https://blog.broulik.de/2024/11/little-wayland-things/ |
This allows the user to enable/disable interactions with the window. This is useful for displaying a dialog box that. This is useful in conjunction with
always-on-top
and PR #6675.Example Slint:
Example Rust (Might be overkill 😃)