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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4256>
This commit is contained in:
parent
e49edebf92
commit
897cc303cb
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user