Fix monitor capture not updating coordinates when switching monitor
Updating was broken since 0ef092a33a
master
parent
b347aaf8e8
commit
567edbf4ea
|
@ -1753,7 +1753,7 @@ INT_PTR CALLBACK ConfigDesktopSourceProc(HWND hwnd, UINT message, WPARAM wParam,
|
||||||
|
|
||||||
case IDC_MONITOR:
|
case IDC_MONITOR:
|
||||||
{
|
{
|
||||||
if (!lParam) {
|
if (!lParam || HIWORD(wParam) == CBN_SELCHANGE) {
|
||||||
UINT id = (UINT) SendMessage(GetDlgItem(hwnd, IDC_MONITOR), CB_GETCURSEL, 0, 0);
|
UINT id = (UINT) SendMessage(GetDlgItem(hwnd, IDC_MONITOR), CB_GETCURSEL, 0, 0);
|
||||||
const MonitorInfo &monitor = App->GetMonitor(id);
|
const MonitorInfo &monitor = App->GetMonitor(id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue