From 7ebe76289da9eb8cf1fa9725d5b9066d08942b64 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 19 Sep 2010 02:45:20 +0200 Subject: [PATCH] Fixed broken file flags. --- tests/events.c | 9 +++++++++ tests/fsfocus.c | 0 2 files changed, 9 insertions(+) mode change 100755 => 100644 tests/fsfocus.c diff --git a/tests/events.c b/tests/events.c index f9d2fbe0..e4f56108 100644 --- a/tests/events.c +++ b/tests/events.c @@ -185,6 +185,14 @@ static void window_refresh_callback(GLFWwindow window) printf("%08x at %0.3f: Window refresh\n", counter++, glfwGetTime()); } +static void window_focus_callback(GLFWwindow window, int activated) +{ + printf("%08x at %0.3f: Window %s\n", + counter++, + glfwGetTime(), + activated ? "activated" : "deactivated"); +} + static void mouse_button_callback(GLFWwindow window, int button, int action) { const char* name = get_button_name(button); @@ -290,6 +298,7 @@ int main(void) glfwSetWindowSizeCallback(window, window_size_callback); glfwSetWindowCloseCallback(window, window_close_callback); glfwSetWindowRefreshCallback(window, window_refresh_callback); + glfwSetWindowFocusCallback(window, window_focus_callback); glfwSetMouseButtonCallback(window, mouse_button_callback); glfwSetMousePosCallback(window, mouse_position_callback); glfwSetMouseWheelCallback(window, mouse_wheel_callback); diff --git a/tests/fsfocus.c b/tests/fsfocus.c old mode 100755 new mode 100644