Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Right click focus
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzxporter committed Dec 2, 2017
1 parent 04a6ff7 commit af29c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PaydayMouseFix/PaydayMouseFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
DefWindowProc(hwnd, uMsg, wParam, lParam);
}
}
else if (uMsg == WM_LBUTTONUP || uMsg == WM_LBUTTONDBLCLK)
else if (uMsg == WM_LBUTTONUP || uMsg == WM_LBUTTONDBLCLK || uMsg == WM_RBUTTONUP || uMsg == WM_RBUTTONDBLCLK)
{
// Attempt to re-focus window when focus was lost
if (!WindowHasFocus && !IsClosingState)
Expand Down

0 comments on commit af29c0e

Please sign in to comment.