xwayland: Set scaled cursor size via xsettings
This commit is contained in:
parent
de1e528ba7
commit
2cbe89d89d
2 changed files with 17 additions and 2 deletions
|
|
@ -219,7 +219,7 @@ impl CursorStateInner {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn load_cursor_theme() -> (CursorTheme, u32) {
|
||||
pub fn load_cursor_env() -> (String, u32) {
|
||||
let name = std::env::var("XCURSOR_THEME")
|
||||
.ok()
|
||||
.unwrap_or_else(|| "default".into());
|
||||
|
|
@ -227,6 +227,11 @@ pub fn load_cursor_theme() -> (CursorTheme, u32) {
|
|||
.ok()
|
||||
.and_then(|s| s.parse().ok())
|
||||
.unwrap_or(24);
|
||||
(name, size)
|
||||
}
|
||||
|
||||
pub fn load_cursor_theme() -> (CursorTheme, u32) {
|
||||
let (name, size) = load_cursor_env();
|
||||
(CursorTheme::load(&name), size)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue