element/window: Add maximize on header double-click
This commit is contained in:
parent
9239584435
commit
3214ef0250
1 changed files with 2 additions and 1 deletions
|
|
@ -538,7 +538,8 @@ impl Program for CosmicWindowInternal {
|
|||
.on_drag(Message::DragStart)
|
||||
.on_close(Message::Close)
|
||||
.focused(self.window.is_activated(false))
|
||||
.density(Density::Compact);
|
||||
.density(Density::Compact)
|
||||
.on_double_click(Message::Maximize);
|
||||
|
||||
if cosmic::config::show_minimize() {
|
||||
header = header.on_minimize(Message::Minimize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue