Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
### Changed
### Fixed
- **Overlay caía para trás ao clicar fora.** No Mutter/XWayland o estado
`_NET_WM_STATE_ABOVE` oscilava ao perder o foco: clicar em outra janela ou no
desktop mandava o overlay para o fundo, sem passar por `toggleWin`/`revealIfHidden`
(únicos pontos que reafirmavam o `alwaysOnTop`). Agora `win.on('blur')` reafirma
`setAlwaysOnTop(true, 'screen-saver')` + `moveTop()` — mesmo padrão do toggle/reveal.
Complementa o raise explícito da v0.6.7.

## [0.6.7] - 2026-07-09

Expand Down
8 changes: 8 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,14 @@ function createWindow() {
// Linux/Mutter ignora `maximizable` → reverte na hora qualquer maximize
// (Super+↑, drag no topo da tela, tiling). Overlay nunca vira tela cheia.
win.on('maximize', () => { try { win.unmaximize(); } catch {} });
// Mutter/XWayland: o estado _NET_WM_STATE_ABOVE oscila ao perder foco (ver
// CHANGELOG 0.6.7) — clicar em outra janela/no desktop derruba o always-on-top
// sem passar por toggleWin/revealIfHidden. Reafirma no blur, do mesmo jeito
// que já se faz no toggle/reveal (setAlwaysOnTop + moveTop).
win.on('blur', () => {
try { win.setAlwaysOnTop(true, 'screen-saver'); } catch {}
try { win.moveTop(); } catch {}
});
// skipTaskbar FORÇADO via wmctrl: no Mutter, com frameless+transparent+
// alwaysOnTop, nem a option `skipTaskbar` nem setSkipTaskbar() geram o
// hint X11 _NET_WM_STATE_SKIP_TASKBAR/PAGER de forma confiável (ele é
Expand Down
Loading