-
Notifications
You must be signed in to change notification settings - Fork 927
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
Added the show system menu method to window #3109
Conversation
Co-authored-by: daxpedda <[email protected]>
This function might be a better fit for |
Co-authored-by: daxpedda <[email protected]>
well the name of this crate suggest that its for adding menu bar to programs, how can system menu relate to it? |
This has nothing to do with the menubars, this is a system menu on the right click on decorations, which is used to show a compositor menu. Winit already shows such a thing, it just, we don't expose the API winit uses for it, which is required for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that there was a mention of the mouse
or similar happening, I'd say that wayland wants that action to be associated with some input event, like in reaction to mouse click, keyboard button press, touch press, etc.
We should say that the compositor is free to ignore such request though.
- now it showcase the `show_system_menu` as well. - added "d" hotkey to enable and disable decorations to better showcase the example. changed `show_system_menu` to `show_window_menu` for being more in line with other platforms.
Co-authored-by: daxpedda <[email protected]>
updated `show_window_menu` documents
I think now its mostly done? |
Couple of nits on the documentation, otherwise LGTM from me. |
Co-authored-by: daxpedda <[email protected]>
I applied your suggestions, thanks. |
Could you rebase for CI to run? |
sure, tests are now running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Windows implementation lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks mostly good.
updated the `drag_window` example based on new changes
Co-authored-by: Kirill Chibisov <[email protected]>
had to add another extra |
This PR add support for showing system menu with calling
show_system_menu
method onWindow
.this can be useful when we are drawing our custom titlebar and want to keep the system menu as well.
currently only supported on windows.
related to: #3108
CHANGELOG.md
if knowledge of this change could be valuable to users