Skip to content

Commit

Permalink
Move a line
Browse files Browse the repository at this point in the history
  • Loading branch information
CaspianA1 committed Feb 4, 2025
1 parent 3571359 commit 35606f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ async fn main() -> MaybeError {
}
}?;

////////// Setting the window opacity and icon
////////// Setting the window always-on-top state, opacity, and icon

sdl_window.set_always_on_top(app_config.window_always_on_top);

// TODO: why does not setting the opacity result in broken fullscreen screen clearing?
if let ScreenOption::Windowed(.., Some(opacity)) = app_config.screen_option {
Expand All @@ -163,8 +165,6 @@ async fn main() -> MaybeError {
}
}

sdl_window.set_always_on_top(app_config.window_always_on_top);

sdl_window.set_icon(Surface::from_file(app_config.icon_path).to_generic()?);

////////// Making a SDL canvas
Expand Down

0 comments on commit 35606f1

Please sign in to comment.