Skip to content

Commit

Permalink
Fix incorrectly named var
Browse files Browse the repository at this point in the history
  • Loading branch information
dathinaios committed Mar 25, 2024
1 parent 8017059 commit 3e3a1eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/win/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@ impl Window<'_> {
}

pub fn has_focus(&mut self) -> bool {
let foreground_window = unsafe { GetFocus() };
foreground_window == self.state.hwnd
let focused_window = unsafe { GetFocus() };
focused_window == self.state.hwnd
}

pub fn focus(&mut self) {
Expand Down

0 comments on commit 3e3a1eb

Please sign in to comment.