From 897cc303cb75e442e577aeb70aca60b90e50d67b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 10 Feb 2025 20:46:53 +0100 Subject: [PATCH] tests/shell: Do not set key-focus to stage Moving the key focus to the stage should be done by unsetting the focus rather than setting it to the stage itself. `clutter_stage_set_key_focus()` already "normalizes" the stage to NULL internally, so this does not change the actual behavior of the code. Part-of: --- src/tests/meta-test-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/meta-test-shell.c b/src/tests/meta-test-shell.c index b06cf1f26..83a169652 100644 --- a/src/tests/meta-test-shell.c +++ b/src/tests/meta-test-shell.c @@ -326,7 +326,7 @@ on_overlay_key (MetaDisplay *display, { test_shell->overview.grab = clutter_stage_grab (stage, CLUTTER_ACTOR (stage)); test_shell->overview.prev_focus = clutter_stage_get_key_focus (stage); - clutter_stage_set_key_focus (stage, CLUTTER_ACTOR (stage)); + clutter_stage_set_key_focus (stage, NULL); } else {