Skip to content

Commit

Permalink
fix: when cannot find env, use default theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Dec 7, 2023
1 parent 32aa358 commit 7ea1fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ pub fn get_area() -> Result<Option<AreaInfo>, WaySipError> {
.bind::<WlShm, _, _>(&qh, 1..=1, ())
.map_err(WaySipError::NotSupportedProtocol)?;

let mut cursor_theme = CursorTheme::load(&connection, shm.clone(), 23)
let mut cursor_theme = CursorTheme::load_or(&connection, shm.clone(), "default", 23)
.map_err(|_| WaySipError::NotGetCursorTheme)?;
let mut cursor = cursor_theme.get_cursor("crosshair");
if cursor.is_none() {
Expand Down

0 comments on commit 7ea1fab

Please sign in to comment.