Skip to content

Commit 0021b37

Browse files
author
Simon Hofmann
committed
(#17) Fixed removed variable
1 parent c650f00 commit 0021b37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/win32/window_manager.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ std::vector<WindowHandle> getWindows() {
2222
}
2323

2424
WindowHandle getActiveWindow() {
25-
if (IsWindow(GetForegroundWindow())) {
25+
HWND foregroundWindow = GetForegroundWindow();
26+
if (IsWindow(foregroundWindow)) {
2627
return reinterpret_cast<WindowHandle>(foregroundWindow);
2728
}
2829
return -1;

0 commit comments

Comments
 (0)