mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[win] Handle focus in/out events
This fixes the errant console behavior (cursor wasn't showing because QF thought it had never received focus).
This commit is contained in:
parent
63e30e6ae0
commit
596cd164a3
2 changed files with 5 additions and 1 deletions
|
@ -12,8 +12,8 @@ case "$host_os" in
|
||||||
CPPFLAGS="$CPPFLAGS $CFLAGS"
|
CPPFLAGS="$CPPFLAGS $CFLAGS"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
SYSTYPE=WIN32
|
|
||||||
fi
|
fi
|
||||||
|
SYSTYPE=WIN32
|
||||||
AC_DEFINE(NEED_GNUPRINTF)
|
AC_DEFINE(NEED_GNUPRINTF)
|
||||||
endian="little"
|
endian="little"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -776,9 +776,13 @@ MainWndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
uMsg = WM_MOUSEWHEEL;
|
uMsg = WM_MOUSEWHEEL;
|
||||||
|
|
||||||
switch (uMsg) {
|
switch (uMsg) {
|
||||||
|
case WM_SETFOCUS:
|
||||||
|
Key_FocusEvent (1);
|
||||||
|
break;
|
||||||
case WM_KILLFOCUS:
|
case WM_KILLFOCUS:
|
||||||
if (modestate == MS_FULLDIB)
|
if (modestate == MS_FULLDIB)
|
||||||
ShowWindow (win_mainwindow, SW_SHOWMINNOACTIVE);
|
ShowWindow (win_mainwindow, SW_SHOWMINNOACTIVE);
|
||||||
|
Key_FocusEvent (0);
|
||||||
break;
|
break;
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue