add minimize-raise() action

This commit is contained in:
Arnaud Vallette d'Osia 2020-11-18 20:12:07 +01:00 committed by GitHub
parent faacd76f62
commit d8dafa7ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -436,6 +436,14 @@ bool Task::handle_clicked(GdkEventButton *bt)
activate();
else if (action == "minimize")
minimize(!minimized());
else if (action == "minimize-raise"){
if (minimized())
minimize(false);
else if (active())
minimize(true);
else
activate();
}
else if (action == "maximize")
maximize(!maximized());
else if (action == "fullscreen")