config: add focus-tiles action
This commit is contained in:
parent
bd85db5b59
commit
57a49d5299
11 changed files with 61 additions and 1 deletions
|
|
@ -383,6 +383,10 @@ impl ConfigClient {
|
|||
self.send(&ClientMessage::SeatFocusLayerRel { seat, direction });
|
||||
}
|
||||
|
||||
pub fn seat_focus_tiles(&self, seat: Seat) {
|
||||
self.send(&ClientMessage::SeatFocusTiles { seat });
|
||||
}
|
||||
|
||||
pub fn seat_focus(&self, seat: Seat, direction: Direction) {
|
||||
self.send(&ClientMessage::SeatFocus { seat, direction });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -741,6 +741,9 @@ pub enum ClientMessage<'a> {
|
|||
seat: Seat,
|
||||
direction: LayerDirection,
|
||||
},
|
||||
SeatFocusTiles {
|
||||
seat: Seat,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
|
|
@ -316,6 +316,11 @@ impl Seat {
|
|||
get!().seat_focus_layer_rel(self, direction)
|
||||
}
|
||||
|
||||
/// Moves the keyboard focus to the tile layer.
|
||||
pub fn focus_tiles(self) {
|
||||
get!().seat_focus_tiles(self)
|
||||
}
|
||||
|
||||
/// 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