feat(header_bar): Show window menu on right click
With this, apps like cosmic-term require no changes to show the compositor window menu when the header is right clicked.
This commit is contained in:
parent
6adc037f40
commit
cc8033d74b
3 changed files with 16 additions and 1 deletions
|
|
@ -661,7 +661,8 @@ impl<App: Application> ApplicationExt for App {
|
|||
.window_id(window::Id::MAIN)
|
||||
.title(&core.window.header_title)
|
||||
.on_drag(Message::Cosmic(cosmic::Message::Drag))
|
||||
.on_close(Message::Cosmic(cosmic::Message::Close));
|
||||
.on_close(Message::Cosmic(cosmic::Message::Close))
|
||||
.on_right_click(Message::Cosmic(cosmic::Message::ShowWindowMenu));
|
||||
|
||||
if self.nav_model().is_some() {
|
||||
let toggle = crate::widget::nav_bar_toggle()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue