Ambxst icon indicating copy to clipboard operation
Ambxst copied to clipboard

Settings window closes immediately when opened on the primary monitor (dual-monitor)

Open dotrashtrash-png opened this issue 3 months ago • 4 comments

sorry for the ia im new in this things :(

On a dual-monitor setup, the Ambxst Settings window closes instantly (visible flash, ~1 second) when opened while the cursor/focus is on my primary monitor (DP-1). Opening the same window from the secondary monitor (HDMI-A-1) works perfectly.

The shell itself does not crash: Quickshell keeps running, the bar stays up, and hyprctl configerrors reports nothing. Only the Settings window dies.

Environment

  • Ambxst: 1.1.5 (commit 989d923f)
  • Quickshell: 0.3.0-2
  • Hyprland: 0.56.2, using hyprland.lua
  • Distro: Arch Linux
  • Kernel: 6.18.44-1-lts
  • GPU: NVIDIA GTX 1050 Ti (Pascal), driver 580.178.04 (legacy 580xx)
  • Theme preset: Default

Monitors:

Steps to reproduce

  1. Dual-monitor setup.
  2. Place the cursor on the primary monitor.
  3. Open Ambxst Settings from the dashboard.
  4. The window appears and closes within ~1 second.
  5. Repeat with the cursor on the secondary monitor: the window opens and stays.

Log evidence

Failing case (DP-1). The window is created, activated, and immediately closed. No panel QML components are loaded at all:

Toplevel handle created ...ToplevelHandle(0x7f1f8cec0b40)
  got appid "org.quickshell"
  got toplevel "Ambxst Settings"
  got output enter 0x7f1fde5f7aa0
  got state update - activated: false maximized: false minimized: false fullscreen: false
  got done
  got state update - activated: true maximized: false minimized: false fullscreen: false
  closed

Working case (HDMI-A-1). Same creation sequence, but the window then proceeds to load its panels:

Toplevel handle created ...ToplevelHandle(0x7f1f7b008d40)
  got appid "org.quickshell"
  got toplevel "Ambxst Settings"
  got output enter 0x7f1fde5f79e0
  got state update - activated: false ...
  got done
  got state update - activated: true ...
Got intercept for ".../dashboard/controls/BluetoothPanel.qml"
Got intercept for ".../dashboard/controls/AudioMixerPanel.qml"
Got intercept for ".../dashboard/controls/EasyEffectsPanel.qml"
Got intercept for ".../dashboard/controls/ThemePanel.qml"
Got intercept for ".../dashboard/controls/ColorPickerView.qml"
Got intercept for ".../dashboard/controls/BindsPanel.qml"
Got intercept for ".../dashboard/controls/SystemPanel.qml"
Got intercept for ".../dashboard/controls/CompositorPanel.qml"
Got intercept for ".../dashboard/controls/ShellPanel.qml"

The key difference: in the failing case the window closes before loading any panel component, with no QML error, exception or warning logged around the close. It looks like a deliberate close rather than a crash.

Existing issues checked

  • #84 (GradientCache / gradient presets): not applicable, I use the Default preset.
  • #141 (AxctlService error): not applicable. axctl runs cleanly here (daemon + subscribe both alive), and the log contains a single JSON parse error at startup rather than the crash-loop described there.
  • #220 (Hello screen slides across monitors): different symptom; the author later identified it as the assistant sidebar during an axctl crash-loop.

Other things ruled out

  • Only one Quickshell instance running (pgrep -a qs).
  • Adding a Hyprland window rule to force the monitor made it worse: the flash-and-close followed the cursor to the secondary monitor instead of fixing it, which suggests the target output is decided at window creation time rather than by compositor placement.
hl.window_rule({
    match = { class = "org.quickshell", title = "Ambxst Settings" },
    monitor = "HDMI-A-1",
})

Notes on my setup

Ambxst is imported from hyprland.lua with dofile("/home/icaro/.local/share/ambxst/hyprland.lua"), placed above my own overrides. Everything else in Ambxst works normally: bar, dashboard, notifications, screen recorder, wallpapers.

Current workaround

Open Settings only from the secondary monitor.

dotrashtrash-png avatar Aug 18 '26 02:08 dotrashtrash-png

Have this issue since 3-4 months. Told him in Discord about it. Told me he will fix it back then and got ghosted afterwards. Issue is there for a long while now

hiraethi avatar Aug 18 '26 05:08 hiraethi

Hi @dotrashtrash-png, I want to congratulate you for this issue. Great data to work with! I'll try to fix it ASAP.


@SleepyCatHiraeth "Ghosted" is a strong word specially when I pushed long ago a fix. It is working fine for me, and nobody until now reported it again. Perhaps something was updated in Hyprland in these last few months. I find some behaviors changing like no refocus when closing the notch. That's not on me.

Sadly I have a single monitor so when I tested I had to use Sunshine and stream a virtual Wayland monitor to a tablet I have. If this can't reproduce the error, then I'm out of options and can't do much. I'll try again tomorrow.

Just so you know, Ambxst is a personal project. Something I made for fun and in my free time. I go to university to be an engineer so time is very limited for me. Also Ambxst isn't my only project, I recently moved, I was sick. You know, life things.

You can always read the code and run your own tests, maybe you can find a fix.

Axenide avatar Aug 18 '26 05:08 Axenide

@Axenide Thank you so much for taking the time to read through all of that and respond — I really appreciate it.

I just wanted to report it in case it was useful, and I completely understand you're busy with other projects and life in general. No pressure at all.

I also wanted to say thanks for a different reason: I'm just starting out studying systems engineering, and Ambxst was my first real introduction to Linux. Getting it running is what got me into all of this. So thank you for the effort and dedication you've put into the project — it's had more of an impact than you probably realize.

If there's anything else I can test on my dual-monitor setup, just let me know and I'll run it. Happy to help however I can.

dotrashtrash-png avatar Aug 18 '26 20:08 dotrashtrash-png

Fixed. :)

Axenide avatar Aug 26 '26 04:08 Axenide