Skip to content
Permalink
Browse files

Windows: don't beep on Alt-* key combos (Thanks, historic_bruno!).

Fixes Bugzilla 2669.
  • Loading branch information
icculus committed May 26, 2015
1 parent bb437f0 commit b11b3493b9b6e8eac967befc1ec4c80287cea678

File 1 of 1 in b11b349

@@ -791,19 +791,23 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
}
return (1);

#if defined(SC_SCREENSAVE) || defined(SC_MONITORPOWER)
case WM_SYSCOMMAND:
{
if ((wParam & 0xFFF0) == SC_KEYMENU) {
return (0);
}

#if defined(SC_SCREENSAVE) || defined(SC_MONITORPOWER)
/* Don't start the screensaver or blank the monitor in fullscreen apps */
if ((wParam & 0xFFF0) == SC_SCREENSAVE ||
(wParam & 0xFFF0) == SC_MONITORPOWER) {
if (SDL_GetVideoDevice()->suspend_screensaver) {
return (0);
}
}
#endif /* System has screensaver support */
}
break;
#endif /* System has screensaver support */

case WM_CLOSE:
{

0 comments on commit b11b349

Please sign in to comment.