config: add focus-below and focus-above actions
This commit is contained in:
parent
c034ea7604
commit
bd85db5b59
12 changed files with 211 additions and 19 deletions
|
|
@ -189,6 +189,13 @@ pub enum Timeline {
|
|||
Newer,
|
||||
}
|
||||
|
||||
/// A direction for layer traversal.
|
||||
#[derive(Serialize, Deserialize, Copy, Clone, Debug, Hash, Eq, PartialEq)]
|
||||
pub enum LayerDirection {
|
||||
Below,
|
||||
Above,
|
||||
}
|
||||
|
||||
/// A seat.
|
||||
#[derive(Serialize, Deserialize, Copy, Clone, Debug, Hash, Eq, PartialEq)]
|
||||
pub struct Seat(pub u64);
|
||||
|
|
@ -303,6 +310,12 @@ impl Seat {
|
|||
get!().seat_focus_history_set_same_workspace(self, same_workspace)
|
||||
}
|
||||
|
||||
/// Moves the keyboard focus of the seat to the layer above or below the current
|
||||
/// layer.
|
||||
pub fn focus_layer_rel(self, direction: LayerDirection) {
|
||||
get!().seat_focus_layer_rel(self, direction)
|
||||
}
|
||||
|
||||
/// Moves the keyboard focus of the seat in the specified direction.
|
||||
pub fn focus(self, direction: Direction) {
|
||||
get!().seat_focus(self, direction)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue