[Piglit] [PATCH 1/2] utils: Don't intercept WM_KEYDOWN::VK_ESCAPE.
Jose Fonseca
jfonseca at vmware.com
Thu Feb 26 02:38:29 PST 2015
Instead pass through the escape char. user_keyboard_func or
piglit_escape_exit_key will handle it already.
---
tests/util/piglit-framework-gl/piglit_wgl_framework.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/tests/util/piglit-framework-gl/piglit_wgl_framework.c b/tests/util/piglit-framework-gl/piglit_wgl_framework.c
index e9fd01c..51fdf1f 100644
--- a/tests/util/piglit-framework-gl/piglit_wgl_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_wgl_framework.c
@@ -56,13 +56,6 @@ process_next_event(struct piglit_winsys_framework *winsys_fw)
}
winsys_fw->need_redisplay = true;
break;
- case WM_KEYDOWN:
- switch (msg.wParam) {
- case VK_ESCAPE:
- PostMessage(msg.hwnd, WM_CLOSE, 0, 0);
- break;
- }
- break;
case WM_CHAR:
if (winsys_fw->user_keyboard_func) {
winsys_fw->user_keyboard_func(msg.wParam, 0, 0);
--
2.1.0
More information about the Piglit
mailing list