mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
windowManager: Reset the key focus when moving between workspaces
In the overview, the key focus should not remain on a window in an inactive workspace. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5345
This commit is contained in:
parent
1bd51f9a38
commit
9af6c6ddc5
1 changed files with 3 additions and 1 deletions
|
|
@ -1845,8 +1845,10 @@ export class WindowManager {
|
|||
if (!Main.sessionMode.hasWorkspaces)
|
||||
return;
|
||||
|
||||
if (!workspace.active)
|
||||
if (!workspace.active) {
|
||||
workspace.activate(global.get_current_time());
|
||||
global.stage.set_key_focus(null);
|
||||
}
|
||||
}
|
||||
|
||||
actionMoveWindow(window, workspace) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue