overview: workaround for hyprland's windows start menu bug

## the bug
- open layershell with keyboard focus
- focus another window or go to another workspace
- close the layer -> focus goes back to the window which was focused when you open the layer shell
## solution
- close the layer, wait a bit then focus
This commit is contained in:
end-4
2024-02-20 16:53:56 +07:00
parent 7353480308
commit 64691cfc9a
@@ -113,8 +113,8 @@ export default () => {
margin-bottom: -${Math.round((y + h) * OVERVIEW_SCALE)}px;
`,
onClicked: (self) => {
Hyprland.messageAsync(`dispatch focuswindow address:${address}`);
App.closeWindow('overview');
Utils.timeout(100, () => Hyprland.messageAsync(`dispatch focuswindow address:${address}`));
},
onMiddleClickRelease: () => Hyprland.messageAsync(`dispatch closewindow address:${address}`),
onSecondaryClick: (button) => {