From 584958222c2007899c2ea7ad7733ba386a4fd489 Mon Sep 17 00:00:00 2001 From: Felipe Ferreira da Silva Date: Thu, 6 Apr 2017 21:18:25 -0300 Subject: [PATCH] Add attention request function for each platform Add stub functions ```_glfwPlatformRequestWindowAttention``` for the platforms Cocoa, Mir, and Wayland, which still lack the implementation of attention request. --- src/cocoa_window.m | 4 ++++ src/mir_window.c | 4 ++++ src/wl_window.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index d2aab85f9..a5ea57ee5 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -1272,6 +1272,10 @@ void _glfwPlatformShowWindow(_GLFWwindow* window) [window->ns.object orderFront:nil]; } +void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) +{ +} + void _glfwPlatformHideWindow(_GLFWwindow* window) { [window->ns.object orderOut:nil]; diff --git a/src/mir_window.c b/src/mir_window.c index 00d50ada9..42e2f4b1a 100644 --- a/src/mir_window.c +++ b/src/mir_window.c @@ -567,6 +567,10 @@ void _glfwPlatformShowWindow(_GLFWwindow* window) mir_surface_spec_release(spec); } +void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) +{ +} + void _glfwPlatformFocusWindow(_GLFWwindow* window) { _glfwInputError(GLFW_PLATFORM_ERROR, diff --git a/src/wl_window.c b/src/wl_window.c index e6c554527..6a13717da 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -589,6 +589,10 @@ void _glfwPlatformShowWindow(_GLFWwindow* window) } } +void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) +{ +} + void _glfwPlatformHideWindow(_GLFWwindow* window) { if (!window->monitor)