-
Notifications
You must be signed in to change notification settings - Fork 623
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
GTK: Menu should be in context menu if no titlebar #4732
Comments
mitchellh
added
gui
GUI or app issue regardless of platform (i.e. Swift, GTK)
os/linux
labels
Jan 7, 2025
We could use https://docs.gtk.org/gtk4/class.PopoverMenuBar.html. |
We could also use a |
I guess you would also wrap it in an |
mitchellh
added a commit
that referenced
this issue
Jan 9, 2025
This PR addresses #4732. While @tristan957 suggested alternative approaches, this implementation provides a straightforward way to make the menu accessible when the window decoration is disabled. It follows patterns seen in other GTK apps for handling submenus, though not strictly in the context menu format truth be told. If there’s a better way to approach this or further refinements needed, I’m happy to discuss and iterate. This has been a minor issue I’ve encountered personally, and I’d like to help improve the experience for others as well. Small video of how it looks: https://github.com/user-attachments/assets/59548fef-f11c-421f-b05b-be81eab6ce06
Fixed by #4864 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For our GTK build, we should put the menu into the context menu (as a
Menu =>
submenu) if the titlebar is disabled. This will allow users to access the menu even when the titlebar is disabled or SSD is used.The text was updated successfully, but these errors were encountered: