diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-16 09:08:10 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-16 09:08:10 +0400 |
| commit | 6494df398d926d53f18c7c4ef1f496136e8e73f0 (patch) | |
| tree | e9a008445f9a726569172a60356e811646c58a44 /src/input.rs | |
| parent | d96daf68a7d1b843b5231e2c416349214c5629d2 (diff) | |
| download | niri-6494df398d926d53f18c7c4ef1f496136e8e73f0.tar.gz niri-6494df398d926d53f18c7c4ef1f496136e8e73f0.tar.bz2 niri-6494df398d926d53f18c7c4ef1f496136e8e73f0.zip | |
Add basic fullscreen impl
Diffstat (limited to 'src/input.rs')
| -rw-r--r-- | src/input.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input.rs b/src/input.rs index e5dba51d..986fc349 100644 --- a/src/input.rs +++ b/src/input.rs @@ -178,8 +178,9 @@ impl Niri { } } Action::ToggleFullscreen => { - if let Some(window) = self.monitor_set.focus() { - // FIXME + let focus = self.monitor_set.focus().cloned(); + if let Some(window) = focus { + self.monitor_set.toggle_fullscreen(&window); } } Action::MoveLeft => { |
