seat: add focus history
This commit is contained in:
parent
9941263a82
commit
d12234b38b
21 changed files with 546 additions and 22 deletions
|
|
@ -15,8 +15,8 @@ use {
|
|||
client::{Client, ClientCriterion, ClientMatcher, MatchedClient},
|
||||
exec::Command,
|
||||
input::{
|
||||
FocusFollowsMouseMode, InputDevice, Seat, SwitchEvent, acceleration::AccelProfile,
|
||||
capability::Capability, clickmethod::ClickMethod,
|
||||
FocusFollowsMouseMode, InputDevice, Seat, SwitchEvent, Timeline,
|
||||
acceleration::AccelProfile, capability::Capability, clickmethod::ClickMethod,
|
||||
},
|
||||
keyboard::{
|
||||
Keymap,
|
||||
|
|
@ -364,6 +364,21 @@ impl ConfigClient {
|
|||
self.send(&ClientMessage::GrabKb { kb, grab });
|
||||
}
|
||||
|
||||
pub fn seat_focus_history(&self, seat: Seat, timeline: Timeline) {
|
||||
self.send(&ClientMessage::SeatFocusHistory { seat, timeline });
|
||||
}
|
||||
|
||||
pub fn seat_focus_history_set_only_visible(&self, seat: Seat, only_visible: bool) {
|
||||
self.send(&ClientMessage::SeatFocusHistorySetOnlyVisible { seat, only_visible });
|
||||
}
|
||||
|
||||
pub fn seat_focus_history_set_same_workspace(&self, seat: Seat, same_workspace: bool) {
|
||||
self.send(&ClientMessage::SeatFocusHistorySetSameWorkspace {
|
||||
seat,
|
||||
same_workspace,
|
||||
});
|
||||
}
|
||||
|
||||
pub fn seat_focus(&self, seat: Seat, direction: Direction) {
|
||||
self.send(&ClientMessage::SeatFocus { seat, direction });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue