1
0
Fork 0
forked from wry/wry

config: add focus-tiles action

This commit is contained in:
Julian Orth 2025-07-19 23:00:28 +02:00
parent bd85db5b59
commit 57a49d5299
11 changed files with 61 additions and 1 deletions

View file

@ -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 });
}

View file

@ -741,6 +741,9 @@ pub enum ClientMessage<'a> {
seat: Seat,
direction: LayerDirection,
},
SeatFocusTiles {
seat: Seat,
},
}
#[derive(Serialize, Deserialize, Debug)]

View file

@ -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)