noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

Cancel full-screen detection for the Niri window

Open lonerOrz opened this issue 1 year ago • 6 comments

Description

The current fullscreen-detection method causes Noctalia to exit its floating state after a restart. I think since we already have an IPC command to hide the bar, users can simply write a script to achieve this, or just use Niri’s fullscreen-window command to go fullscreen directly.

I also discovered that canceling the bar's float state causes outer corners to automatically activate.

Expected Behavior

I want the software to retain the float setting I made when I restart it.

Environment

  • Distro: NixOS
  • Compositor: Niri
  • Noctalia-shell Version: 3.5.0-git

lonerOrz avatar Dec 03 '25 11:12 lonerOrz

The automatic activation of outer corner fillets has been fixed. #957

lonerOrz avatar Dec 03 '25 12:12 lonerOrz

Description

The current fullscreen-detection method causes Noctalia to exit its floating state after a restart. I think since we already have an IPC command to hide the bar, users can simply write a script to achieve this, or just use Niri’s fullscreen-window command to go fullscreen directly.

I also discovered that canceling the bar's float state causes outer corners to automatically activate.

Expected Behavior

I want the software to retain the float setting I made when I restart it.

Environment

* Distro:  NixOS

* Compositor: Niri

* Noctalia-shell Version: 3.5.0-git

Well the reason we added that check for fullscreen is because it behaves oddly with the new maximize-window-to-edges stuff. See: https://github.com/noctalia-dev/noctalia-shell/issues/926 If you got any better idea though I'm all for it.

Ly-sec avatar Dec 03 '25 12:12 Ly-sec

Well the reason we added that check for fullscreen is because it behaves oddly with the new maximize-window-to-edges stuff. See: #926 If you got any better idea though I'm all for it.

for example:Mod+Shift+F { spawn-sh "niri msg action maximize-window-to-edges && qs -c noctalia-loner ipc call bar toggle"; }

https://github.com/user-attachments/assets/9a521d4d-e8d9-4d6d-8468-2939e80cf519

lonerOrz avatar Dec 03 '25 12:12 lonerOrz

I guess that could be a solution for sure. If you feel like it you can open a PR to remove it :).

Ly-sec avatar Dec 03 '25 13:12 Ly-sec

I guess that could be a solution for sure. If you feel like it you can open a PR to remove it :).

I've found it more complicated than I imagined, but it's certain that our current implementation is somewhat inadequate. Perhaps we should wait for Niri to add more event streams.

lonerOrz avatar Dec 03 '25 14:12 lonerOrz

Yeah you're probably right. So what's the plan, do we keep it or do we revert it?

I guess that could be a solution for sure. If you feel like it you can open a PR to remove it :).

I've found it more complicated than I imagined, but it's certain that our current implementation is somewhat inadequate. Perhaps we should wait for Niri to add more event streams.

Ly-sec avatar Dec 03 '25 16:12 Ly-sec