1
0
Fork 0
forked from wry/wry

add mouse_follows_focus

This commit is contained in:
kossLAN 2026-06-06 20:05:20 -04:00
parent e61f042d8b
commit 3a4105dd42
No known key found for this signature in database
8 changed files with 72 additions and 22 deletions

View file

@ -699,12 +699,20 @@ impl Seat {
/// Sets whether the cursor should automatically move to the center of a window
/// when focus changes via keyboard commands (move-left, focus-right, show-workspace, etc.).
///
/// The default is `false`.
#[deprecated = "This setting is unstable and might be removed in the future"]
pub fn unstable_set_mouse_follows_focus(self, enabled: bool) {
/// The default is `true`.
pub fn set_mouse_follows_focus(self, enabled: bool) {
get!().seat_set_mouse_follows_focus(self, enabled)
}
/// Sets whether the cursor should automatically move to the center of a window
/// when focus changes via keyboard commands (move-left, focus-right, show-workspace, etc.).
///
/// The default is `true`.
#[deprecated = "Use `set_mouse_follows_focus` instead"]
pub fn unstable_set_mouse_follows_focus(self, enabled: bool) {
self.set_mouse_follows_focus(enabled)
}
/// Toggles tabbed mode on the focused window's parent container.
pub fn toggle_tab(self) {
get!().seat_toggle_tab(self)