Screensaver opens as a small floating window and self-terminates after 1s when a bar panel is open
Screensaver opens as a small floating window and self-terminates after 1s when a bar panel is open
Summary
When any bar widget panel (e.g. the power/battery dropdown) is open at the moment the idle timer fires, the screensaver misbehaves in two ways at once:
- It does not go fullscreen — it appears as a small floating terminal window in the middle of the screen, at foot's default 700x500.
- It kills itself after ~1.05 seconds, without any user input.
The visible result is a small box that pops up, animates briefly, and disappears on its own.
The idle service logs this as screensaver-dismissed and cancels the pending lock, so the
session also fails to lock on that cycle.
Both symptoms trace to the panel holding layer-shell keyboard focus.
Environment
| Omarchy | 4.0.0-1 |
| Hyprland | v0.56.2 |
| Quickshell | 0.3.0 (28771c7c, AUR quickshell-git) |
| foot | 1.27.0 |
| ttfx | 0.3.1 |
| Kernel | 6.19.8-arch1-3-surface |
| CPU | Intel i7-1185G7 (Tiger Lake) |
| GPU | Intel Iris Xe (TigerLake-LP GT2) |
| Display | single eDP-1, 2880x1920, scale = 2 |
| Terminal | foot (xdg-terminal-exec --print-id → foot.desktop) |
idle.screensaver = 150, idle.lock = 300 in ~/.config/omarchy/shell.json.
Steps to reproduce
Deterministic, no waiting for the idle timer:
# 1. Open any bar panel built on KeyboardPanel
omarchy-shell omarchy.power open
# 2. Launch the screensaver the same way the idle service does
omarchy-launch-screensaver force
Result: a small floating terminal appears centered, runs the ttfx animation, and exits by itself after about one second.
Control — the identical command with the panel closed produces a correct fullscreen screensaver that persists:
omarchy-shell omarchy.power close
omarchy-launch-screensaver force
In normal use this happens whenever you leave the battery/power dropdown open and walk away.
Expected vs actual
Expected: the screensaver covers the screen and stays up until real user input, then the
lock fires at idle.lock.
Actual: a small floating box appears for ~1s and self-terminates. The idle service reads the window closing as a user dismissal, cancels the cycle, and the machine never locks.
Evidence
Window state sampled every 100ms via hyprctl clients -j, same command, only the panel state
differs:
| panel closed (control) | panel open | |
|---|---|---|
fullscreen |
2 |
0 |
size |
[1440, 960] (full screen) |
[700, 500] (foot default) |
floating |
true |
true |
| lifetime | persisted past 2.6s | 1.08s, exited on its own |
Focus sampled every 50ms across a naturally-occurring failure (window opened 22:40:34.937):
34.944 NOTFOCUS class=foot <- 7ms after map; screensaver never got focus
... (167/167 samples NOTFOCUS class=foot)
35.982 idle-cycle-cancel: screensaver-dismissed
Lifetime 34.937 → 35.982 = 1.045s.
Across five separate naturally-occurring failures, window-open → dismissal was
1.046, 1.044, 1.228, 1.235, 1.235s — each one exactly 1.000s (the read -n1 -t 1
timeout) plus a short wait_for_terminal_resize prefix. No human input was involved.
Root cause
Bar panels are built on KeyboardPanel, which takes layer-shell keyboard focus while open
(shell/Ui/KeyboardPanel.qml:98; the power panel instantiates it at
shell/plugins/panels/power/Panel.qml:292):
WlrLayershell.keyboardFocus: open
? (focusPrimed ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.Exclusive)
: WlrKeyboardFocus.None
That single condition breaks the screensaver twice.
1. The fullscreen window rule never applies
With the panel holding focus, the newly mapped screensaver window does not become the active
toplevel, so fullscreen = true (default/hypr/apps/system.lua:35) does not take effect. The
adjacent float = true (line 36) does, leaving a floating window at foot's default 700x500 —
the small centered box.
2. The watchdog mistakes "never had focus" for "user dismissed me"
bin/omarchy-screensaver:5:
screensaver_in_focus() {
hyprctl activewindow -j | jq -e '.class == "org.omarchy.screensaver"' >/dev/null 2>&1
}
hyprctl activewindow only reports toplevel windows — layer surfaces are invisible to it.
With the panel focused it returns the last focused toplevel (here foot), so the check returns
false even though nothing the user did caused it.
At the first tick of the watch loop (bin/omarchy-screensaver:44):
if read -n1 -t 1 || ! screensaver_in_focus; then
exit_screensaver
fi
read times out at 1.000s, screensaver_in_focus is false, and the screensaver pkills
itself (bin/omarchy-screensaver:12). The idle service then observes closewindow, treats it
as screensaver-dismissed, and cancels the pending lock.
The check has no way to distinguish lost focus from never acquired focus, and no awareness of layer-shell focus.
Suggested fixes
Any one of these addresses it; the first two are the smallest:
- Close open bar panels before launching the screensaver, or skip the launch while a keyboard-focus panel is open (the idle service already shells out, so this is one more call).
- Don't run the focus check until the screensaver has been focused at least once. Latch a "was focused" flag and only treat focus loss as dismissal after that, which also removes the fixed 1s window where a slow-mapping window can be killed.
- Make the focus check layer-aware, e.g. treat "no active toplevel / a layer surface holds focus" as not-a-dismissal rather than as a dismissal.
- Consider making the screensaver a layer-shell overlay rather than a toplevel terminal window, which sidesteps both the fullscreen-rule race and the focus check entirely.
Additional note
exit_screensaver uses pkill -f '[o]rg.omarchy.screensaver' (bin/omarchy-screensaver:12).
The [o] guard only protects against matching the pgrep/pkill process itself — it still
matches any process whose command line contains that string. Scripts or tooling that mention
the class by name (including diagnostics for this very bug) get killed as collateral. Matching
on PID or window address would be safer.
Confirmed on omarchy-dev 4.0.0.r1744.gf002044-1, Hyprland 0.56, using Foot on a single 3840×2160 display at 1.6 scale.
I reproduced it with the Display panel, which was verified present as the omarchy-keyboard-panel layer before launch:
- panel open, 0.2 s after launch:
fullscreen: 0,floating: true, size700×500 - panel open, 1.4 s after launch: the screensaver window was gone
The control with no keyboard panel open produced a fullscreen window (fullscreen: 2, size 2400×1350) that remained alive past 1.4 s. Cleanup left no screensaver window, ttfx process, or new core dump.
Tested by OpenAI Codex via Codex.
Confirmed, and your diagnosis of the watchdog is exactly right. A fix for the self-termination is up as #7102: it latches "has been focused at least once" so the absence of focus only counts as a dismissal after the screensaver has actually held it. That also stops the idle service reading the window closing as screensaver-dismissed, so the lock timer survives and the machine locks on schedule.
The other half -- the fullscreen rule not applying -- is left alone deliberately. default/hypr/apps/system.lua:35 registers it through Hyprland's own hl.window_rule and Omarchy has no other fullscreen path, so that behaviour is inside the compositor. After #7102 the screensaver on that cycle still draws as a floating 700x500 box; it just stays up and locks instead of vanishing. Whether to close open panels before launching, or move the screensaver to a layer surface, is a design call left open here.
For anyone linking this to #6995: they are separate. That one needs a lock already in flight, launches a second screensaver into it, and ends in a ttfx SIGABRT with a core dump. This one needs no lock and leaves none, and its ~1.045s lifetime is the read -n1 -t 1 timeout.
Confirmed on Omarchy 4.0.0-1 (Hyprland 0.56.2-1, aquamarine 0.14.0-2, single HDMI-A-1 @ 1920x1080, foot as the terminal).
Reproduced deterministically with omarchy.menu as the focused KeyboardPanel:
$ omarchy-shell shell toggle omarchy.menu '{"menu":"root"}'
$ omarchy-launch-screensaver force
35.150 launch
35.202 [700x500 float=true fs=0] active=foot
35.408 [700x500 float=true fs=0] active=foot
...
36.438 [GONE] active=foot
700x500 floating instead of fullscreen, activewindow never reports the screensaver, window gone ~1.1 s later. Matches the analysis in the issue exactly.
The consequence is worse than a cancelled lock: it's an unbounded wake loop
The issue describes the idle service misreading the exit as dismissal and cancelling the pending lock. On a machine left alone, that doesn't happen once — it repeats forever, because cancelIdleCycle() does two things:
// plugins/services/idle/Service.qml
function cancelIdleCycle(reason) {
...
if (root.idledThisCycle) runProcess(wakeProcess, "wake", "omarchy-system-wake")
root.idledThisCycle = false
...
}
It fires omarchy-system-wake (display on, brightness restore, clamshell recheck) and clears idledThisCycle, so the compositor's idle notification re-arms. 150 s later the screensaver launches into the still-focused panel, dies again in ~1 s, wakes again. Steady state is a self-sustaining cycle at screensaver_timeout + ~1 s.
Observed here as 90 consecutive iterations over 3 h 41 m, exactly 151 s apart with screensaver: 150:
23:11:08.603 idle-monitor: idle
23:11:08.603 idle-cycle-start: screensaver=150 lock=300
23:11:08.603 process-start: screensaver
23:11:09.749 idle-cycle-cancel: screensaver-dismissed
23:11:09.749 process-start: wake omarchy-system-wake
23:13:39.749 idle-monitor: idle <- 150 s later, repeat
It only broke when a human actually touched the machine, which dismissed the panel.
Two consequences worth separating from the original report:
- The machine never locks.
lock: 300is never reached, because every cycle is cancelled at ~151 s and the lock timer restarts. An unattended desktop stays unlocked and lit indefinitely. That's the security-relevant part. - It reads to the user as a hardware fault. The visible symptom is the display blanking and flashing back every ~2.5 minutes. My first four hours of debugging went into ACPI wake sources and suspend/resume logs before I found there had been no suspend at all —
omarchy-system-wakein the journal is what finally pointed at the idle service.
A guard on repetition would contain the blast radius even where the focus false-negative isn't fully fixed: if a screensaver window closes without any real input having been seen since idle-cycle-start, treating it as a failed launch rather than a dismissal would let the lock timer keep running instead of resetting the whole cycle. #7102's latch fixes the panel case; this would also cover any future path where the screensaver exits on its own.
Workaround for anyone hitting this: omarchy-toggle-screensaver. With no window to close, nothing can be falsely dismissed and the lock fires normally.
Filed by Claude Opus 5 via Claude Code.
Re-checked against current quattro (19266119) after @sanjaysingh13's report, and reproduced the window half on a clean worker VM — Omarchy dev at that commit, Hyprland 0.56.2, single Virtual-1 at 1280x800 scale 1, foot.
Same defect, and the trigger is wider than the title says. omarchy.menu is not a KeyboardPanel: it is a plain overlay layer surface that takes WlrKeyboardFocus.Exclusive unconditionally (shell/plugins/menu/Menu.qml:1065-1072), and it fails identically. So the condition is not "a bar panel is open" but "some layer surface holds exclusive keyboard focus", which in current quattro also covers the clipboard picker (shell/plugins/clipboard/Clipboard.qml:321), the emoji picker (shell/plugins/emojis/Emojis.qml:167), the image picker (shell/plugins/image-picker/ImagePicker.qml:370), the Wi-Fi QR panel, the speed-test overlay, the reminder flow, and the polkit prompt (shell/plugins/polkit/PolkitAgent.qml:228) — a pending authentication dialog being exactly the sort of thing someone walks away from.
With the menu open and a foot window behind it, omarchy-launch-screensaver force, sampled every 50 ms and given no input at all:
menu open +66 ms [700x500 fs=0 float=true] active=foot ttfx=yes
+1136 ms [GONE] active=foot ttfx=no
menu closed +101 ms [1280x800 fs=2 float=true] active=org.omarchy.screensaver ttfx=yes (still up at 20 s)
Three scales across the three reports now (2, 1.6, 1) and three different focused surfaces, all identical — monitor scale is not part of this mechanism.
On the repeating cycle. It matches this source, with one correction: omarchy-system-wake is not what re-arms it, and it generates no input of its own — omarchy-brightness-display on early-returns when every output is already lit (bin/omarchy-brightness-display:65-71), and the clamshell recheck no-ops without an internal panel. What re-arms the cycle is that cancelIdleCycle clears idledThisCycle (shell/plugins/services/idle/Service.qml:100-111) after the compositor has separately reported activity — the idle service already documents that "starting the screensaver can make the compositor report activity" (Service.qml:159-163), and open PRs #7780 and #7528 both restate it. That gives IdleMonitor.onIsIdleChanged a false-to-true edge to fire on, startIdleCycle runs again (Service.qml:172-178), and lockTimer never reaches its deadline because every cycle is cancelled ~1.1 s in. 151 s spacing at screensaver: 150 is what that predicts. Which compositor event supplies the activity edge could not be established from source; the window mapping is the strongest candidate. This half was not reproduced: the worker's compositor never reports idle at all (isIdle stayed false for five minutes with a 15 s timeout and no input), so it was checked in source only.
What closes it. #7102 breaks the loop: with the latch the screensaver never self-terminates, no closewindow arrives, nothing cancels the cycle, and lockTimer fires, so the machine locks on schedule. It does not make the window fullscreen — that half is inside the compositor — and it does not make the screensaver dismissable while a layer surface holds keyboard focus, because the terminal's read still never sees the keystroke; #7780 / #7528 (against #7762) are what would supply that, and the two together are the whole of this cycle. None of the other screensaver PRs in flight close this: #7876 changes pinning and z-order only, #7307 changes art sizing only, and #7193 bypasses bin/omarchy-screensaver when the native screensaver package is installed while leaving the terminal fallback exactly as it is.
The omarchy-toggle-screensaver workaround holds in source: with screensaver-off set the launcher exits before mapping anything, no window ever closes, and the 3 s grace timer only cancels when the monitor is active (Service.qml:272-281), so the lock timer survives and fires at idle.lock. One caveat should #7193 land: it execs the native binary at the top of omarchy-launch-screensaver, ahead of the screensaver-off check, so the toggle would then depend on that binary honouring the flag itself.
Reviewed by Claude Opus 5 and independently by Codex at xhigh reasoning. Codex agreed on the loop and on the workaround, corrected the attribution of the re-arm away from omarchy-system-wake, and contributed the #7193 ordering point above. What lands is the maintainer's call.
I can reproduce this on my current Omarchy install with the omarchy.agents Quickshell bar panel open (the Claude Code usage panel shown in the recording).
The attached 9.38-second, 2560x1600 recording shows the screensaver content running while the open panel remains visible above it at the upper right. The screensaver is therefore not presented as a clean, stable fullscreen surface and then disappears/interleaves with the underlying desktop. Closing the panel makes the screensaver appear normally fullscreen, matching the behavior described in this issue.
Environment:
- Omarchy 4.0.1-1
- Hyprland 0.56.2
- Quickshell 0.3.1
- Kernel 7.1.9-arch1-2
- Intel Iris Plus Graphics 640 (Kaby Lake-U GT3, i915)
omarchy.agentsconfigured in~/.config/omarchy/shell.json
Reproduction: open the omarchy.agents panel, launch or wait for the Omarchy screensaver, and observe the panel staying above/interfering with the screensaver. Close the panel and trigger the screensaver again for the control case.
Video capture: https://github.com/user-attachments/assets/94100ed9-3149-4612-a998-4b16eb7673f7
Reproduced your exact recipe on a disposable worker — Omarchy dev at 83881e97, Hyprland 0.56.2, Quickshell 0.3.1, foot, single output at 1280x800 scale 1 — with omarchy.agents opened through omarchy-shell omarchy.agents open, a foot window behind it, sampled every 50 ms, and no input given at any point:
agents panel open +167ms 700x500 float=true fs=0 at (290,163) active=foot ttfx=yes
+1134ms active=foot ttfx=no
+1244ms [GONE] active=foot
panel closed +69ms 1280x800 float=true fs=2 active=org.omarchy.screensaver ttfx=yes (still up at 10.2 s)
omarchy.agents is the fourth distinct surface to trigger this and the first that is a bar panel proper, so the case in the title is now confirmed alongside the wider one.
The panel staying visible above the screensaver is layer ordering, not a second defect. An open bar panel maps as a full-output layer surface on the overlay layer — hyprctl layers shows omarchy-keyboard-panel at 1280x800, level 3 (shell/Ui/KeyboardPanel.qml:85-86, where the bar itself sits on Top) — and the overlay layer is above every ordinary window, fullscreen included. It would stay on top even if the fullscreen rule had applied. What makes it read as interleaving is the other half: the screensaver is a small box in the middle of the output rather than the whole of it, so the desktop shows around it.
On that box: 700x500 is not an Omarchy size. No rule sets a size for org.omarchy.screensaver — the 875x600 floating rule at default/hypr/apps/system.lua:4 applies to the floating-window tag, which the screensaver does not carry — and 700x500 is foot's own documented default (man 5 foot.ini, initial-window-size-pixels, "Default: 700x500"). The window is simply never resized, which predicts a different box for anyone running the screensaver in Alacritty, Ghostty or Kitty. Worth noting that float = true and fullscreen = true are registered in the same block at system.lua:35-36, and in the failing run the float rule applied while the fullscreen rule did not — so the compositor is declining specifically the fullscreen rule while a layer surface holds keyboard focus. Omarchy has no other fullscreen path, so that half remains outside it.
What kills it at ~1 s, measured rather than inferred. I ran an instrumented copy of bin/omarchy-screensaver on the worker that logs both operands of the exit test on line 44. Five runs, identical every time: exactly one tick, at +1.09 s, with read -n1 -t 1 returning 142 (timed out, no byte read) and screensaver_in_focus returning 1. Nothing is being mistaken for a keypress. The exit is entirely ! screensaver_in_focus, because hyprctl activewindow keeps reporting foot for as long as the panel holds keyboard focus, and the ~1 s is just the read timeout.
On #8386, which looks like the same thing and is not. The same trace shows exit_screensaver entered three times per run, in all five runs: pkill -f '[o]rg.omarchy.screensaver' on line 12 kills the terminal that owns this script's own pty, and the resulting SIGHUP re-enters the trap that is already running. That re-entrancy is real and it does fire on this path — but the tick line above proves the exit decision had already been taken before exit_screensaver was called even once, so it is strictly downstream. Repairing it would not keep the screensaver up a millisecond longer. It is worth knowing only because both show up in the same journal from the same second.
Nothing else has moved since the last look: quattro is at 83881e97 with no screensaver change landed, #7102 is still what closes the self-termination half and with it the never-locks consequence, and closing the panel or omarchy-toggle-screensaver is still the workaround.
One detail of your report is not accounted for. Everything measured here dies at about 1.1 s, while your recording runs 9.38 s. If the screensaver really did stay up for most of those nine seconds rather than about one, that is different from anything measured so far and worth knowing — journalctl --user -t omarchy-shell | grep 'omarchy idle' across the launch would settle it, since the idle service logs every idle-cycle-start and idle-cycle-cancel with a timestamp.
Reviewed by Claude Opus 5 and, as a second opinion, by Codex at xhigh reasoning; its independence is not guaranteed, as it can read this session's own working notes. It agreed on the ordering between this issue and #8386, and contributed the observation that 700x500 comes from no Omarchy rule at all, which is what sent me to foot's defaults. It was more cautious than the measurement on the re-entrancy, calling the SIGHUP delivery possible rather than certain; the five instrumented runs settle that.
Confirming this on a single-monitor machine, with a larger sample and a clean control.
System: Intel Core Ultra 7 270K Plus, AMD Radeon RX 9060 XT (amdgpu), one 5120x2160@120 output at scale 1.25, Ghostty as the default terminal. Omarchy 4.0.2-1, Hyprland 0.56.2-1, quickshell 0.3.1-1, Mesa 26.2.1-1, kernel 7.2.2.
The dismissals are machine-generated, not human. Over two days the shell journal holds 239 idle-cycle-cancel: screensaver-dismissed events. 233 of them land 1.396-1.560 s after the matching process-start: screensaver (mean 1.420 s, so the read -n1 -t 1 timeout plus window-open time). The other six are 3.1, 5.0, 7.6, 14.7, 75.3 and 103.5 s, which are the real dismissals by a person. No human produces a 1.42 s dismissal 233 times with a 0.03 s spread.
Consequence, measured. One continuous overnight stretch produced 225 idle cycles, 151 s apart. All 225 ended in screensaver-dismissed at ~1.42 s. None reached lock-timeout. The session was unlocked at 21:47 and the idle service did not lock it once before 07:28 the next morning, with lock: 300 configured. Across the whole two-day sample: 264 cycles, 239 dismissals, 24 locks, and every one of those 24 locks came from a cycle in which no screensaver window existed.
Control. In cycles where omarchy-launch-screensaver did not run, the lock fired at the deadline every time, to the millisecond. That happens on two paths: the screensaver toggled off (launcher exits 1), and the session already locked (the isLocked guard short-circuits). Same config, same idle service, same monitor. The only difference is whether a screensaver window existed to close.
I want to flag one thing about the evidence, because it caught out an earlier report of the same loop in #8114: handleIdleChanged logs only on a transition, so journal silence does not prove that no input arrived. The 1.42 s clustering and the nine-hour run are what rule out a human here, not the absence of idle-monitor lines.
Trigger, unresolved. I could not identify what makes screensaver_in_focus false on this machine. Single monitor, so not the multi-monitor hop in #8114. No fullscreen game, so not #9636. The only layer surfaces present are omarchy-background and omarchy-bar, and hyprctl activewindow answers correctly with them up. The failures stopped after an unrelated omarchy-restart-shell, which fits a stale layer surface holding exclusive keyboard focus, but I have no capture of one. A probe is running here to catch the next occurrence, and I will post the focus state if it recurs.
Worth separating from the trigger. Whatever makes the focus check fail, handleScreensaverWindowClosed stopping lockTimer is what converts a cosmetic screensaver problem into a machine that never locks, silently, with no line in the journal that reads as an error. PR #7102 latches the focus check so the screensaver stops killing itself, which fixes this path. A guard on the dismissal handler as well, so that a screensaver window closing with no observed input leaves the lock deadline armed, would close the whole class: #9636 and #8114 reach the same never-locks state through different triggers. Happy to open that as its own issue if you would rather track it separately.
Filed by Claude Opus 5 via Claude Code.
I also encounter this with the main Omarchy menu on Omarchy 4.0.4-1, using Ghostty.
Steps to reproduce
- Open the Omarchy menu with Super + Space.
- Start typing a search, for example
val. The menu works normally. - Leave the menu open and stop interacting with the machine.
- Wait for the screensaver timeout (150 seconds).
Expected: the screensaver appears normally and remains until user input, or is suppressed while the menu is open.
Actual: the screensaver briefly appears below the menu as a small square, then disappears after approximately one second without user input.
Environment
- Omarchy: 4.0.4-1
- Hyprland: 0.56.2-2
- Quickshell: 0.3.1-1
- Default terminal: Ghostty 1.3.1-2 (
com.mitchellh.ghostty.desktop) - CPU: AMD Ryzen 9 5950X
- Idle configuration:
screensaver: 150,lock: 300
Local journal evidence
On 2026-09-30, the user journal contains several cycles consistent with the reported symptom. One example (UTC):
11:05:28.896Z idle-monitor: idle
11:05:28.896Z idle-cycle-start: screensaver=150 lock=300
11:05:28.896Z process-start: screensaver [[ $(omarchy-shell lock isLocked 2>/dev/null) == "true" ]] || omarchy-launch-screensaver
11:05:29.132Z idle-monitor: active
11:05:29.132Z idle-monitor-active: screensaver cycle remains armed
11:05:29.136Z process-exit: screensaver exitCode=0 status=0
11:05:30.240Z idle-cycle-cancel: screensaver-dismissed
11:05:30.240Z process-start: wake omarchy-system-wake
11:05:30.305Z process-exit: wake exitCode=0 status=0
Relevant installed code
The main menu's PanelWindow in shell/plugins/menu/Menu.qml uses both:
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
The installed bin/omarchy-screensaver still exits when screensaver_in_focus is false after read -n1 -t 1. This appears consistent with the focus conflict described above.
The idle service treats the closing screensaver window as screensaver-dismissed and calls cancelIdleCycle, which stops the pending lock timer. The cancellation is visible in the journal; whether the session ultimately remains unlocked was not independently tested in this report.
The menu reproduction and visual symptoms were observed by the user. Package versions, installed code, and journal excerpts were inspected locally with an assistant; no separate automated visual reproduction was performed.
Still reproduces on current dev (omarchy-dev 4.0.0.r6720.g8e02fc8, Hyprland 0.56.2, Quickshell 0.3.1, Ghostty, single eDP-1). There's one result below that bears on the "close open panels before launching" option left open above.
Stock panels. Same recipe as the issue, with activewindow and the screensaver window count sampled every 0.4 s:
omarchy.audio open screensaver maps, gone ~1 s later active=<previous window> throughout
omarchy.network open same; the panel is still open after the screensaver exits
no panel (control) active=org.omarchy.screensaver from the first sample after map, stays up
Closing the panel after the screensaver maps doesn't help. I watched socket2 and closed the panel as soon as openwindow>>…,org.omarchy.screensaver,… arrived. The window had already mapped without focus, and Hyprland didn't move focus to it when the panel's keyboard focus went away. activewindow stayed on the previous window, and the screensaver exited on its usual ~1 s timeout. Closing the panel 0.3 s before omarchy-launch-screensaver works: the screensaver takes focus and stays up.
So a fix along those lines has to close panels (and the other exclusive-focus surfaces listed above) before the window maps, for example in the idle service before launchScreensaver(), not in response to the window opening. Otherwise it needs an explicit focus dispatch to the new window as well. This test used a plugin's own panel built on Ui/KeyboardPanel.qml. I didn't repeat that particular step with a stock panel, but it's the same component.
Third-party plugins hit it too. Any plugin panel built on KeyboardPanel triggers it. As a stopgap, my notification-center plugin now closes its panel after 60 s without input, which keeps it clear of the 150 s screensaver timeout.
Investigated with Claude Code.
Same thing here on Omarchy 4.0.4-1 (MacBookPro8,1, foot), with the Wi-Fi panel left open. Adding one data point on how long this can go on unnoticed, since the lock is cancelled along with the screensaver.
From journalctl --user | grep "omarchy idle" on 2026-10-04:
- First
idle-cycle-cancel: screensaver-dismissedat 09:54:44, last at 16:38:16 - 161 consecutive cancelled cycles, one every ~150 s, zero
lock-systemevents in between - So the laptop sat unlocked with the display on for about 6 h 45 min, until the panel was closed
One cycle, repeated verbatim:
16:20:35 idle-monitor: idle
16:20:35 idle-cycle-start: screensaver=150 lock=300
16:20:35 process-start: screensaver ... omarchy-launch-screensaver
16:20:36 idle-cycle-cancel: screensaver-dismissed
16:20:36 process-start: wake omarchy-system-wake
The missing screensaver is cosmetic, but a machine that never locks because a bar panel was left open seems worth treating as a security issue. #13475 (dismiss open panels on screensaver launch) looks like it would cover this case.
Re-checked against current quattro (902fd8ae) after the reports from @TechCascadeLtd, @pershin-daniil, @Lifferado and @gillmania. The defect is unchanged there: bin/omarchy-screensaver still exits on the first tick whenever hyprctl activewindow is not the screensaver (lines 43-46), and handleScreensaverWindowClosed still treats that window closing as a dismissal and stops lockTimer (shell/plugins/services/idle/Service.qml:146-155, 120). The recent idle-service changes (#12538 and the timeout fixes before it) only touch how deadlines are set; they leave the dismissal path alone. So the never-locks loop measured above, 6h45m and 9h unlocked, is still what quattro does with a panel, the menu or a polkit prompt left open.
#7102 is still the fix for that half and still merges cleanly onto 902fd8ae: it only counts lost focus as a dismissal after the screensaver has held focus, so a screensaver that never got focus stays up, no window closes, and the lock fires on schedule. A key typed into the screensaver itself still dismisses it. It does not make the window fullscreen or give it focus.
#13475 is a second approach that has since opened. Closing open panels before launch, rather than after the window maps (which @Lifferado showed is too late), is what would fix the small-box half for the surfaces it closes. Its watchdog change only delays the exit to 5 s, though, and the polkit prompt is not among the surfaces it closes, so with that prompt open the screensaver still exits and the lock is still cancelled. The two overlap in bin/omarchy-screensaver and are otherwise complementary. Which to take, or both, is the maintainer's call; #13475 gets its own review.
Checked in source by Claude Opus 5.5 and, as a second opinion, by Codex at medium effort, which agreed and independently found the polkit gap in #13475; its independence is not guaranteed. Nothing was run on a worker this time, since the code on this path has not changed since #7102 was verified on one. Waiting on the maintainer.
Adding a second data point on 4.0.4-1, since the earlier reports used a third-party clock panel and Ghostty — this is Omarchy's own panel, on foot, single monitor.
System: Omarchy 4.0.4-1, Hyprland 0.56.2, foot, one 3440×1440 output (scale 1), ttfx 0.5.0-3, i7-11800H / Intel TigerLake-H.
Repro: open the network bar popup (Omarchy's own omarchy-keyboard-panel), then omarchy-launch-screensaver force, sampling hyprctl clients -j and hyprctl activewindow -j.
| Open at launch | screensaver window |
|---|---|
| nothing | fullscreen=2/2, size=[3440,1440], active |
| network panel | fullscreen=0/0, size=[700,500], never active, gone in ~1.5 s |
| Omarchy menu | fullscreen=0/0, size=[700,500], never active, gone in ~1.5 s |
OSD (WlrKeyboardFocus.None) |
fullscreen=2/2, active |
The OSD row is the control: a panel that does not take keyboard focus is harmless, so the trigger is the panel's keyboard focus, not the panel itself.
Confirming PR #13784's diagnosis — an explicit hl.dsp.window.fullscreen({ action = "set", window = "address:0x…" }) on the stuck window does fullscreen it, but it still never becomes the active window, so omarchy-screensaver's screensaver_in_focus check still ends the session (that PR's "known limits" menu case).
One more consequence that I don't see called out in this thread: when the screensaver window closes, the idle service logs idle-cycle-cancel: screensaver-dismissed and cancels the pending lock for that cycle. In my own idle journal that is 1,429 screensaver-dismissed events, 233 idle cycles that ended in <3 s, and 858 of the 1,429 followed by no lock within 30 min — so a panel left open can leave the session unlocked while you are away.
Happy to test PR #13784 on foot / a single 3440×1440 output if a second machine is useful.
Re-checked against current quattro (51bfd1db) after @tuthan's report. Nothing on this path has changed since the last look: bin/omarchy-screensaver still exits on the first tick when hyprctl activewindow is not the screensaver (line 44), and the idle service still reads that window closing as screensaver-dismissed and stops the lock timer (shell/plugins/services/idle/Service.qml:146-155). The only changes to these files since then are a translated notification string in the launcher and lazy loading of panel content in KeyboardPanel.qml, which leaves its keyboard focus as it was.
A correction to the earlier comments here. They said the fullscreen half was inside the compositor, with no other fullscreen path in Omarchy. That was wrong. The window rule is skipped, but an explicit dispatch to the same window is honoured, and #13784 does exactly that: a window.open handler in default/hypr/apps/system.lua that focuses the screensaver and then sets it fullscreen. It was verified on a disposable worker on 3 October. With the network panel or the calendar open, the screensaver on quattro maps at 700x500, unfocused, and is gone within two seconds. With #13784 it maps fullscreen, focused, and is still up at four seconds. @tuthan's measurement agrees: a manual fullscreen dispatch fixes the size, but on its own it does not give the window focus.
What each fix covers, by how the open surface holds focus:
- Bar panels built on
KeyboardPaneltake exclusive focus for 75 ms and then drop to on-demand focus (shell/Ui/KeyboardPanel.qml:121,275-282). That lets #13784's focus dispatch land, so with #13784 alone the screensaver is fullscreen, stays up, and dismisses on a key press. The lock timer then survives, but the lock firing was inferred from this and not observed. These are the cases in the title, @tuthan's network panel among them. - The menu, the clipboard, emoji and image pickers, and the polkit prompt hold exclusive focus for as long as they are open. The focus dispatch has no effect there, so with #13784 alone the screensaver goes fullscreen but still quits after about a second, and the lock is still cancelled. Of these, only the menu was measured. #7102 is what keeps it up in these cases, and the lock with it.
The two touch different files and merge cleanly onto 51bfd1db, one after the other in either order. Together they give a fullscreen screensaver that stays up and lets the machine lock, whatever surface was left open.
Neither fix covers two things. An open panel or menu is drawn on the overlay layer, so it stays visible over the screensaver. And while an exclusive surface holds focus, a key press goes to that surface and not to the screensaver. Separately, on several monitors the launcher moves focus to each output before that output's screensaver maps, so a screensaver that already has focus can still close itself. That is #8114. As discussed on #7102, that fix does not make it any more likely than quattro does, but it does not remove it either, and #13784 does not change it.
Checked in source by Claude Opus 5.5 and, as a second opinion, by Codex at medium effort, which agreed on each point. Its independence is not guaranteed, because it can read this session's notes. It also raised the multi-monitor case above, which was already known from #7102. Nothing was run on a worker this time, because the code on this path is the same code #7102 and #13784 were each verified against. Which fix to take, or both, is the maintainer's call.
Additional occurrence with OmaSpotify's mini-player popup on Omarchy 4.0.6-1.
Observed behaviour
- Open the OmaSpotify bar widget's mini-player and leave it open.
- Leave the machine idle until the 150-second screensaver timeout.
- The screensaver visibly starts, then disappears and returns to the desktop with the mini-player still open, without deliberate user input.
Expected: the screensaver takes over and remains until actual user activity.
The local idle journal shows six consecutive cycles with approximately 1.33–1.36 seconds from idle-cycle start to idle-cycle-cancel: screensaver-dismissed, followed by the wake command. Subsequent cycles start about 150 seconds after the previous dismissal. This matches the brief start-and-disappear behaviour seen by the user.
Versions and relevant code
- Omarchy:
4.0.6-1 - Quickshell:
0.3.2.r7.g2b4501a-1 - OmaSpotify:
2.0.0, installed commit77c4638
The installed OmaSpotify BarWidget.qml uses Omarchy's shared KeyboardPanel for this popup, with open: root.popupOpen and a keyboard focus target. The installed shared component uses overlay-layer placement and Exclusive focus for its initial 75 ms, then OnDemand focus while open. The installed bin/omarchy-screensaver still exits when screensaver_in_focus is false after the one-second read timeout.
Verification limits / configuration difference
This installation uses a customised clone of the idle service: screensaver after 150 seconds, automatic idle locking intentionally disabled, and display blanking scheduled 600 seconds after screensaver launch. It still invokes the packaged screensaver launcher and retains the screensaver-window dismissal handling. Therefore this report does not establish failure of automatic locking, nor reproduction with the stock idle service.
The user observed the visual symptom; an assistant inspected the installed code, package versions and existing journal. No separate popup-open versus popup-closed controlled test or focus trace was performed. The focus conflict is consistent with this issue, but was not independently proven on this installation. No configuration changes were made during the investigation.
Re-checked against current quattro (e2c7007c). The defect is gone there, because the code it lived in is gone. fdbe182d3 replaced the terminal screensaver with the native omarchy-screensaver package. That package draws a full-output layer surface on the overlay layer, and losing keyboard focus never dismisses it. bin/omarchy-screensaver and its 1-second focus watchdog were removed, and so were the screensaver window rules in default/hypr/apps/system.lua. e3a5298c7 removed the idle service's window tracking, so a screensaver closing now cancels the cycle only when the idle monitor reports the user active (shell/plugins/services/idle/Service.qml:142-147). The fix is not in any release yet: v4.5.0-rc2 still ships the terminal screensaver. So 4.0.x and the current release candidates behave as reported here.
Measured on a disposable worker built from the Omarchy ISO (Hyprland 0.57.0, Quickshell 0.3.2, omarchy-screensaver 1.3.1, foot, one 1280x800 output). Each case was run on quattro and on fdbe182d3's parent:
- The window.
omarchy-launch-screensaver forcewith the network panel open. On the parent, the screensaver is a 700x500 floating window (fullscreen: 0) that never becomes active and is gone after about 1 s. Onquattro, it covers the whole output above the panel and is still running at 6 s. The power panel andomarchy.menubehave the same onquattro. - The lock.
idle.screensaver = 10,idle.lock = 25, the network panel left open, no input. On the parent, every cycle ends inidle-cycle-cancel: screensaver-dismissedabout 1.1 s after launch. That happened three times in 45 s, and the session never locked. This is the loop @sanjaysingh13, @TechCascadeLtd and @gillmania measured, reproduced end to end for the first time here. Onquattro, the screensaver stays up,lock-system: lock-timeoutfires on schedule, andisLockedistrue. The same happens withomarchy.menuopen instead of the panel.
Two things were not tested. First, whether a key press reaches the screensaver while a surface that holds exclusive keyboard focus (the menu, a polkit prompt) sits under it. Pointer input and the idle service's own activity check still end it either way. Second, the polkit prompt itself. One residual path remains in source. A screensaver that exits while the compositor reports activity nobody made would still count as a dismissal, but nothing here produced one.
This leaves #7102, #13784 and #13475 aimed at files quattro no longer has: the terminal watchdog, the screensaver window rules and the terminal launcher. @brokemac79, your idle service is a customised clone. If it still carries the old window-close handling, it will keep cancelling the lock after you update, even with the native screensaver.
Checked by Claude Opus 5.5, with second opinions from Codex at medium effort and muse-wonder (via pi) at high effort. Both agreed that the reported mechanism is gone on quattro and that those three pull requests no longer apply. Their independence is not guaranteed. Both said the never-locks half was only argued from the source, which is why the idle cycle above was run. Both also raised the untested key routing and the residual path. Waiting on the maintainer: this can close once the native screensaver ships in a release, and what happens to the three pull requests is their call.
Still reproduces on the current stable release, not just on quattro — so the native-screensaver fix is not reachable for people on the released line.
Environment: Omarchy 4.5.0-3, Hyprland 0.56.2, foot as the default terminal, single eDP-1, idle.screensaver=150, idle.lock=300. /usr/share/omarchy/bin/omarchy-screensaver is byte-identical to the v4.5.0 tag (sha256 8564310…), i.e. still the terminal screensaver with the 1 s focus watchdog.
Repro (deterministic, no waiting for the idle timer):
# 1. open the Omarchy menu (WlrKeyboardFocus.Exclusive layer surface)
omarchy-shell shell toggle omarchy.menu '{"menu":"root"}'
# 2. launch the screensaver the way the idle service does
omarchy-launch-screensaver force
Result, sampled once a second — the window maps, never becomes activewindow, and the watchdog kills it:
1s: ttfx=1 active=foot special=special:screensaver-eDP-1
2s: ttfx=0 active=foot special=
Control with the menu closed: active=org.omarchy.screensaver on every sample, ttfx still alive after 6 s.
The knock-on is the one already measured here: the shell reads the self-closed window as screensaver-dismissed and calls cancelIdleCycle, which stops the lock timer, so the session never locks while a keyboard-exclusive overlay is left open (handleScreensaverWindowClosed → cancelIdleCycle("screensaver-dismissed") in shell/plugins/services/idle/Service.qml).
Question: is a backport of the native omarchy-screensaver (fdbe182d3, in quattro) or of a narrower watchdog fix planned for the 4.5 stable line? As it stands, every 4.5.x install keeps the never-locks behaviour until the next major.
Until then, the workaround that works on stable is to remove the screensaver from the idle cycle entirely — idle.screensaver: 0 in ~/.config/omarchy/shell.json (plus omarchy toggle screensaver off to block manual launches). With no screensaver window there is no screensaver-dismissed event, and idle.lock then fires on schedule regardless of what overlays are open. That is a workaround, not a fix: the idle service still cannot tell a screensaver that quit on its own from one the user dismissed.
@helingjun, the stable source confirms the mechanism you measured. Both v4.5.0 and the current v4-5-0 branch point to ac2690cd. The one-second focus watchdog is still there, and the idle service still cancels the lock timer when the screensaver window closes. The screensaver file's SHA-256 also matches your reported prefix.
The native replacement in fdbe182d3 and the idle-service change in e3a5298c7 are present on current quattro, but absent from 4.5.0 and its release branch. This remains open for stable; whether and how to backport a fix is waiting on the maintainer. No backport or release date is established here.
One workaround detail: 4.5.0 supports setting idle.screensaver to 0 while keeping idle.lock positive. However, omarchy toggle screensaver off ignores the off argument and toggles availability, so running it again can re-enable the screensaver. omarchy-toggle screensaver-off on explicitly sets the disable flag; a force launch still bypasses that flag. These commands were checked in the stable source, not exercised this session.
Reviewed by GPT-6 in Codex (reasoning effort not exposed) and Opus 5.5 at high effort. Opus checked current quattro, agreed with the supplied stable comparison, and identified the toggle-command issue; independence is not guaranteed. No new worker tests were run. The worker results posted on November 1 apply to the earlier commits named there.