added cursor_follows_focus and focus_follows_cursor
This commit is contained in:
parent
52280e9823
commit
7da0bc430a
22 changed files with 844 additions and 384 deletions
|
|
@ -20,7 +20,7 @@ fn toggle_stacking(state: &mut State, mapped: &CosmicMapped) {
|
|||
let seat = shell.seats.last_active().clone();
|
||||
if let Some(new_focus) = shell.toggle_stacking(&seat, mapped) {
|
||||
std::mem::drop(shell);
|
||||
Shell::set_focus(state, Some(&new_focus), &seat, None);
|
||||
Shell::set_focus(state, Some(&new_focus), &seat, None, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ fn move_prev_workspace(state: &mut State, mapped: &CosmicMapped) {
|
|||
);
|
||||
if let Some((target, _)) = res {
|
||||
std::mem::drop(shell);
|
||||
Shell::set_focus(state, Some(&target), &seat, None);
|
||||
Shell::set_focus(state, Some(&target), &seat, None, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -85,7 +85,7 @@ fn move_next_workspace(state: &mut State, mapped: &CosmicMapped) {
|
|||
);
|
||||
if let Some((target, _point)) = res {
|
||||
std::mem::drop(shell);
|
||||
Shell::set_focus(state, Some(&target), &seat, None)
|
||||
Shell::set_focus(state, Some(&target), &seat, None, true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -161,6 +161,7 @@ impl Item {
|
|||
}
|
||||
}
|
||||
|
||||
/// Menu that comes up when right-clicking an application header bar
|
||||
pub struct ContextMenu {
|
||||
items: Vec<Item>,
|
||||
selected: AtomicBool,
|
||||
|
|
|
|||
|
|
@ -882,6 +882,7 @@ impl Drop for MoveGrab {
|
|||
Some(&KeyboardFocusTarget::from(mapped)),
|
||||
&seat,
|
||||
Some(serial),
|
||||
false,
|
||||
)
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue