wl_seat: add additional getters
This commit is contained in:
parent
60e9a33a57
commit
1f42bfde3c
2 changed files with 30 additions and 0 deletions
|
|
@ -956,10 +956,20 @@ impl WlSeatGlobal {
|
|||
self.focus_history_visible_only.set(visible);
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn focus_history_visible(&self) -> bool {
|
||||
self.focus_history_visible_only.get()
|
||||
}
|
||||
|
||||
pub fn focus_history_set_same_workspace(&self, same_workspace: bool) {
|
||||
self.focus_history_same_workspace.set(same_workspace);
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn focus_history_same_workspace(&self) -> bool {
|
||||
self.focus_history_same_workspace.get()
|
||||
}
|
||||
|
||||
fn focus_layer_rel<LI, SI>(
|
||||
self: &Rc<Self>,
|
||||
next_layer: impl Fn(NodeLayer) -> NodeLayer,
|
||||
|
|
@ -1462,10 +1472,20 @@ impl WlSeatGlobal {
|
|||
self.focus_follows_mouse.set(focus_follows_mouse);
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn focus_follows_mouse(&self) -> bool {
|
||||
self.focus_follows_mouse.get()
|
||||
}
|
||||
|
||||
pub fn set_fallback_output_mode(&self, fallback_output_mode: FallbackOutputMode) {
|
||||
self.fallback_output_mode.set(fallback_output_mode);
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn fallback_output_mode(&self) -> FallbackOutputMode {
|
||||
self.fallback_output_mode.get()
|
||||
}
|
||||
|
||||
pub fn set_window_management_enabled(self: &Rc<Self>, enabled: bool) {
|
||||
self.pointer_owner
|
||||
.set_window_management_enabled(self, enabled);
|
||||
|
|
@ -1582,6 +1602,11 @@ impl WlSeatGlobal {
|
|||
pub fn set_pointer_revert_key(&self, key: KeySym) {
|
||||
self.revert_key.set(key);
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn pointer_revert_key(&self) -> KeySym {
|
||||
self.revert_key.get()
|
||||
}
|
||||
}
|
||||
|
||||
impl CursorUserOwner for WlSeatGlobal {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue