forked from Shinonome/dots-hyprland
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:
@@ -113,8 +113,8 @@ export default () => {
|
|||||||
margin-bottom: -${Math.round((y + h) * OVERVIEW_SCALE)}px;
|
margin-bottom: -${Math.round((y + h) * OVERVIEW_SCALE)}px;
|
||||||
`,
|
`,
|
||||||
onClicked: (self) => {
|
onClicked: (self) => {
|
||||||
Hyprland.messageAsync(`dispatch focuswindow address:${address}`);
|
|
||||||
App.closeWindow('overview');
|
App.closeWindow('overview');
|
||||||
|
Utils.timeout(100, () => Hyprland.messageAsync(`dispatch focuswindow address:${address}`));
|
||||||
},
|
},
|
||||||
onMiddleClickRelease: () => Hyprland.messageAsync(`dispatch closewindow address:${address}`),
|
onMiddleClickRelease: () => Hyprland.messageAsync(`dispatch closewindow address:${address}`),
|
||||||
onSecondaryClick: (button) => {
|
onSecondaryClick: (button) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user