diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-17 14:56:29 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-17 22:31:19 -0700 |
| commit | 39f52b75856936db01325aa1c7f15fe8f379485d (patch) | |
| tree | 08fcbf8c938aa2b10a9be3014bf292f17225063d /niri-ipc/src | |
| parent | b447b1f4de65ee706bdbbdb9b650ab030459c0fb (diff) | |
| download | niri-39f52b75856936db01325aa1c7f15fe8f379485d.tar.gz niri-39f52b75856936db01325aa1c7f15fe8f379485d.tar.bz2 niri-39f52b75856936db01325aa1c7f15fe8f379485d.zip | |
Implement toggle-windowed-fullscreen
Windowed, or fake, or detached, fullscreen, is when a window thinks that it's
fullscreen, but the compositor treats it as a normal window.
Diffstat (limited to 'niri-ipc/src')
| -rw-r--r-- | niri-ipc/src/lib.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs index ea7c70ee..33de3d32 100644 --- a/niri-ipc/src/lib.rs +++ b/niri-ipc/src/lib.rs @@ -221,6 +221,18 @@ pub enum Action { #[cfg_attr(feature = "clap", arg(long))] id: Option<u64>, }, + /// Toggle windowed (fake) fullscreen on a window. + #[cfg_attr( + feature = "clap", + clap(about = "Toggle windowed (fake) fullscreen on the focused window") + )] + ToggleWindowedFullscreen { + /// Id of the window to toggle windowed fullscreen of. + /// + /// If `None`, uses the focused window. + #[cfg_attr(feature = "clap", arg(long))] + id: Option<u64>, + }, /// Focus a window by id. FocusWindow { /// Id of the window to focus. |
