add mouse_follows_focus
This commit is contained in:
parent
e61f042d8b
commit
3a4105dd42
8 changed files with 72 additions and 22 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue