main: Don't set stage key focus to stage itself

Moving the key focus to the stage should be done by unsetting
the key focus, not by setting it to the stage itself.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3633>
This commit is contained in:
Florian Müllner 2025-02-11 00:42:45 +01:00
parent a8d4c679eb
commit 2c714645d3

View File

@ -737,7 +737,8 @@ export function pushModal(actor, params = {}) {
});
actionMode = newActionMode;
global.stage.set_key_focus(actor);
const newFocus = actor === global.stage ? null : actor;
global.stage.set_key_focus(newFocus);
return grab;
}