@@ -3956,7 +3956,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
3956
3956
}
3957
3957
mm->set_relative_screen_position (mm->get_relative ());
3958
3958
3959
- if ((windows[window_id].window_has_focus || windows[window_id].is_popup ) && mm->get_relative () != Vector2 ()) {
3959
+ if ((windows[window_id].window_focused || windows[window_id].is_popup ) && mm->get_relative () != Vector2 ()) {
3960
3960
Input::get_singleton ()->parse_input_event (mm);
3961
3961
}
3962
3962
}
@@ -4004,7 +4004,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
4004
4004
windows[window_id].last_pen_inverted = inverted;
4005
4005
4006
4006
// Don't calculate relative mouse movement if we don't have focus in CAPTURED mode.
4007
- if (!windows[window_id].window_has_focus && mouse_mode == MOUSE_MODE_CAPTURED) {
4007
+ if (!windows[window_id].window_focused && mouse_mode == MOUSE_MODE_CAPTURED) {
4008
4008
break ;
4009
4009
}
4010
4010
@@ -4054,7 +4054,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
4054
4054
mm->set_relative_screen_position (mm->get_relative ());
4055
4055
old_x = mm->get_position ().x ;
4056
4056
old_y = mm->get_position ().y ;
4057
- if (windows[window_id].window_has_focus || window_get_active_popup () == window_id) {
4057
+ if (windows[window_id].window_focused || window_get_active_popup () == window_id) {
4058
4058
Input::get_singleton ()->parse_input_event (mm);
4059
4059
}
4060
4060
}
@@ -4140,7 +4140,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
4140
4140
}
4141
4141
4142
4142
// Don't calculate relative mouse movement if we don't have focus in CAPTURED mode.
4143
- if (!windows[window_id].window_has_focus && mouse_mode == MOUSE_MODE_CAPTURED) {
4143
+ if (!windows[window_id].window_focused && mouse_mode == MOUSE_MODE_CAPTURED) {
4144
4144
break ;
4145
4145
}
4146
4146
@@ -4203,7 +4203,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
4203
4203
mm->set_relative_screen_position (mm->get_relative ());
4204
4204
old_x = mm->get_position ().x ;
4205
4205
old_y = mm->get_position ().y ;
4206
- if (windows[window_id].window_has_focus || window_get_active_popup () == window_id) {
4206
+ if (windows[window_id].window_focused || window_get_active_popup () == window_id) {
4207
4207
Input::get_singleton ()->parse_input_event (mm);
4208
4208
}
4209
4209
@@ -4255,7 +4255,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
4255
4255
}
4256
4256
4257
4257
// Don't calculate relative mouse movement if we don't have focus in CAPTURED mode.
4258
- if (!windows[window_id].window_has_focus && mouse_mode == MOUSE_MODE_CAPTURED) {
4258
+ if (!windows[window_id].window_focused && mouse_mode == MOUSE_MODE_CAPTURED) {
4259
4259
break ;
4260
4260
}
4261
4261
@@ -4764,7 +4764,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
4764
4764
} break ;
4765
4765
case WM_SETCURSOR: {
4766
4766
if (LOWORD (lParam) == HTCLIENT) {
4767
- if (windows[window_id].window_has_focus && (mouse_mode == MOUSE_MODE_HIDDEN || mouse_mode == MOUSE_MODE_CAPTURED || mouse_mode == MOUSE_MODE_CONFINED_HIDDEN)) {
4767
+ if (windows[window_id].window_focused && (mouse_mode == MOUSE_MODE_HIDDEN || mouse_mode == MOUSE_MODE_CAPTURED || mouse_mode == MOUSE_MODE_CONFINED_HIDDEN)) {
4768
4768
// Hide the cursor.
4769
4769
if (hCursor == nullptr ) {
4770
4770
hCursor = SetCursor (nullptr );
0 commit comments