diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-24 10:51:00 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | 53e1c58cc53c3868c236cc8877816ed4aab5b7b0 (patch) | |
| tree | 58135cd15e08fe8e7c89912da00fa89de4afcb22 /src/layout/monitor.rs | |
| parent | 4b9ecdd11d146df44320eba12bead3e9677a2060 (diff) | |
| download | niri-53e1c58cc53c3868c236cc8877816ed4aab5b7b0.tar.gz niri-53e1c58cc53c3868c236cc8877816ed4aab5b7b0.tar.bz2 niri-53e1c58cc53c3868c236cc8877816ed4aab5b7b0.zip | |
Remember floating window position
Diffstat (limited to 'src/layout/monitor.rs')
| -rw-r--r-- | src/layout/monitor.rs | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index 844e932d..3ef1b605 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -324,16 +324,10 @@ impl<W: LayoutElement> Monitor<W> { } } - pub fn add_floating_tile( - &mut self, - mut workspace_idx: usize, - tile: Tile<W>, - pos: Option<Point<f64, Logical>>, - activate: bool, - ) { + pub fn add_floating_tile(&mut self, mut workspace_idx: usize, tile: Tile<W>, activate: bool) { let workspace = &mut self.workspaces[workspace_idx]; - workspace.add_floating_tile(tile, pos, activate); + workspace.add_floating_tile(tile, activate); // After adding a new window, workspace becomes this output's own. workspace.original_output = OutputId::new(&self.output); @@ -531,7 +525,7 @@ impl<W: LayoutElement> Monitor<W> { }; if removed.is_floating { - self.add_floating_tile(new_idx, removed.tile, None, true); + self.add_floating_tile(new_idx, removed.tile, true); } else { self.add_tile( new_idx, @@ -558,7 +552,7 @@ impl<W: LayoutElement> Monitor<W> { }; if removed.is_floating { - self.add_floating_tile(new_idx, removed.tile, None, true); + self.add_floating_tile(new_idx, removed.tile, true); } else { self.add_tile( new_idx, @@ -601,7 +595,7 @@ impl<W: LayoutElement> Monitor<W> { }; if removed.is_floating { - self.add_floating_tile(new_idx, removed.tile, None, activate); + self.add_floating_tile(new_idx, removed.tile, activate); } else { self.add_tile( new_idx, |
