added cursor_follows_focus and focus_follows_cursor
This commit is contained in:
parent
52280e9823
commit
7da0bc430a
22 changed files with 844 additions and 384 deletions
|
|
@ -5,6 +5,8 @@
|
|||
pub use input::{AccelProfile, ClickMethod, ScrollMethod, TapButtonMap};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
// Note: For the following values, None is used to represent the system default
|
||||
// Configuration for input devices
|
||||
#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)]
|
||||
pub struct InputConfig {
|
||||
pub state: DeviceState,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,12 @@ pub struct CosmicCompConfig {
|
|||
pub autotile_behavior: TileBehavior,
|
||||
/// Active hint enabled
|
||||
pub active_hint: bool,
|
||||
/// Enables changing keyboard focus to windows when the cursor passes into them
|
||||
pub focus_follows_cursor: bool,
|
||||
/// Enables warping the cursor to the focused window when focus changes due to keyboard input
|
||||
pub cursor_follows_focus: bool,
|
||||
/// The delay in milliseconds before focus follows mouse (if enabled)
|
||||
pub focus_follows_cursor_delay: u64,
|
||||
/// Let X11 applications scale themselves
|
||||
pub descale_xwayland: bool,
|
||||
}
|
||||
|
|
@ -50,6 +56,9 @@ impl Default for CosmicCompConfig {
|
|||
autotile: Default::default(),
|
||||
autotile_behavior: Default::default(),
|
||||
active_hint: true,
|
||||
focus_follows_cursor: false,
|
||||
cursor_follows_focus: false,
|
||||
focus_follows_cursor_delay: 250,
|
||||
descale_xwayland: false,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue