Skip to content

Commit eb748d9

Browse files
committed
gwl: fix focusing on the wrong app after moving an app between workspaces
Signed-off-by: Milan Kotykov <[email protected]>
1 parent 1c50d51 commit eb748d9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

files/usr/share/cinnamon/applets/[email protected]/appGroup.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,11 @@ var AppGroup = class AppGroup {
975975

976976
this.calcWindowNumber();
977977
this.updateNotificationsBadge();
978-
this.onFocusChange();
978+
const hasFocus = getFocusState(metaWindow);
979+
if (hasFocus) {
980+
this.workspaceState.set({lastFocusedApp: this.groupState.appId});
981+
}
982+
this.onFocusChange(hasFocus);
979983
}
980984
set({
981985
metaWindows,

0 commit comments

Comments
 (0)