Skip to content

Feature : fullscreen layout restore when unfullscreening#14

Open
matclab wants to merge 2 commits intoAsthestarsfalll:mainfrom
matclab:feat/fullscreen-layout-restore
Open

Feature : fullscreen layout restore when unfullscreening#14
matclab wants to merge 2 commits intoAsthestarsfalll:mainfrom
matclab:feat/fullscreen-layout-restore

Conversation

@matclab
Copy link
Copy Markdown

@matclab matclab commented Apr 5, 2026

This is inspired from nsfm and provides a
fullscreen-toggle command to solve this niri issue
where window are not restored to their position when unfullscreening.

I didn't discuss the feature before, and I apologize for it, but as it is useful to me, I propose it.

matclab added 2 commits April 4, 2026 21:09
Resize floating window before reading its position so the relative
move offset accounts for any position adjustment niri makes during
resize. Previously the position was read before resize, causing the
computed offset to be stale and the configured margin to be ignored.
The fullscreen toggle is issued with 'piri fullscreen-toggle'

This is inspired from [nsfm](https://github.com/gvolpe/nfsm) and provides a
`fullscreen-toggle` command to solve [this niri issue](niri-wm/niri#426)
where window are not restored to their position when unfullscreening.
@matclab
Copy link
Copy Markdown
Author

matclab commented Apr 5, 2026

Note it is based on #13.

@matclab matclab mentioned this pull request Apr 5, 2026
@Asthestarsfalll
Copy link
Copy Markdown
Owner

I will review and test this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants