overview & cheatsheet: fix window focus after open/close layer with kb (#502)

This commit is contained in:
end-4
2024-05-18 15:23:48 +07:00
parent 8955fcab2b
commit ecfacef55f
4 changed files with 66 additions and 26 deletions
+2 -1
View File
@@ -4,7 +4,7 @@ import PopupWindow from '../.widgethacks/popupwindow.js';
import { monitors } from '../.miscutils/hyprlanddata.js';
const WINDOWS_NEED_CLICK2CLOSE = [
'sideleft', 'sideright', 'overview', 'cheatsheet'
'sideleft', 'sideright'
];
const range = (length, start = 1) => Array.from({ length }, (_, i) => i + start);
@@ -15,6 +15,7 @@ export default (monitor = 0) => PopupWindow({
layer: 'top',
anchor: ['top', 'bottom', 'left', 'right'],
exclusivity: 'ignore',
keymode: 'none',
child: Widget.EventBox({
attribute: {
checkWindowRelevance: (currentName) => {