1
0
Fork 0
forked from wry/wry

config: add mouse-follows-focus option

This commit is contained in:
Nicolaus Jacobsen 2026-03-10 09:36:13 +01:00 committed by Julian Orth
parent 0d4ee299d4
commit 216d104b73
14 changed files with 134 additions and 6 deletions

View file

@ -1108,6 +1108,10 @@ impl ConfigClient {
self.send(&ClientMessage::SeatEnableUnicodeInput { seat });
}
pub fn seat_set_mouse_follows_focus(&self, seat: Seat, enabled: bool) {
self.send(&ClientMessage::SeatSetMouseFollowsFocus { seat, enabled });
}
pub fn set_show_float_pin_icon(&self, show: bool) {
self.send(&ClientMessage::SetShowFloatPinIcon { show });
}

View file

@ -871,6 +871,10 @@ pub enum ClientMessage<'a> {
dx2: i32,
dy2: i32,
},
SeatSetMouseFollowsFocus {
seat: Seat,
enabled: bool,
},
}
#[derive(Serialize, Deserialize, Debug)]