Switch overview workspaces after keyboard focus is released
Closing the overview handed focus back to the previous window after the workspace switch, pulling back to the old workspace whenever it was occupied. Release focus first, then switch. Window clicks go to their workspace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aecee213f8
commit
178041edf9
2 files changed
+16
-14
No files matched your search
@@ -61,16 +61,6 @@ Singleton {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
// Goes to a window wherever it is. Activation requests (focusWindow) are
|
||||
// ignored for windows on other workspaces unless misc:focus_on_activate is set.
|
||||
function revealWindow(address, workspace) {
|
||||
if (!/^(0x)?[0-9a-f]+$/i.test(address))
|
||||
return false;
|
||||
if (Number.isInteger(workspace) && workspace > 0)
|
||||
focusWorkspace(workspace);
|
||||
Hyprland.dispatch("hl.dsp.focus({ window = 'address:" + (address.startsWith("0x") ? address : "0x" + address) + "' })");
|
||||
return true;
|
||||
}
|
||||
function focusWorkspace(id) {
|
||||
if (!Number.isInteger(id) || id < 1)
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user