From 3b806aef27c6976b13a6c14956795e0701f6b728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 22 Dec 2021 14:16:19 +0100 Subject: [PATCH] Wayland: Fix duplicate focus event on activation (cherry picked from commit c2f0a0ae5990a23d84c3f4529771b1268a34f918) --- README.md | 1 + src/wl_window.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c274a1cc..7bd6ace6 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ information on what to include when reporting a bug. ## Changelog - [Wayland] Bugfix: Key repeat could lead to a race condition (#1710) + - [Wayland] Bugfix: Activating a window would emit two input focus events ## Contact diff --git a/src/wl_window.c b/src/wl_window.c index ec4e60cd..924eda9c 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -653,7 +653,6 @@ static void xdgToplevelHandleConfigure(void* data, } if (fullscreen && activated) window->wl.wasFullscreen = GLFW_TRUE; - _glfwInputWindowFocus(window, activated); } static void xdgToplevelHandleClose(void* data,