xdg-activation: Unminimize actived window
This commit is contained in:
parent
2bf769ac32
commit
70cda33481
1 changed files with 6 additions and 1 deletions
|
|
@ -117,6 +117,11 @@ impl XdgActivationHandler for State {
|
|||
ActivationContext::Workspace(workspace) => {
|
||||
let seat = self.common.last_active_seat().clone();
|
||||
let current_output = seat.active_output();
|
||||
|
||||
if element.is_minimized() {
|
||||
self.common.shell.unminimize_request(&element, &seat);
|
||||
}
|
||||
|
||||
let current_workspace = self.common.shell.active_space_mut(¤t_output);
|
||||
|
||||
let in_current_workspace = current_workspace
|
||||
|
|
@ -145,7 +150,7 @@ impl XdgActivationHandler for State {
|
|||
}
|
||||
}
|
||||
|
||||
if workspace == ¤t_workspace.handle && in_current_workspace {
|
||||
if workspace == ¤t_workspace.handle || in_current_workspace {
|
||||
let target = element.into();
|
||||
Shell::set_focus(self, Some(&target), &seat, None);
|
||||
} else if let Some(w) = self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue