diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-07 13:15:20 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-07 13:16:54 +0400 |
| commit | 4b8e04da041a0cb6b07afe5405bef7e4a61bce5b (patch) | |
| tree | 5756215b6abd7ceca14bf6546707745b2bb6c2e2 /src/layout/monitor.rs | |
| parent | 026ad8f3778f07da49f0d005739f47cfa6269a36 (diff) | |
| download | niri-4b8e04da041a0cb6b07afe5405bef7e4a61bce5b.tar.gz niri-4b8e04da041a0cb6b07afe5405bef7e4a61bce5b.tar.bz2 niri-4b8e04da041a0cb6b07afe5405bef7e4a61bce5b.zip | |
Activate the new right_of window on its workspace
This way when a dialog opens on a different workspace, the user will see
it right away when they switch to that workspace.
Diffstat (limited to 'src/layout/monitor.rs')
| -rw-r--r-- | src/layout/monitor.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index f5da804a..383ff965 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -130,7 +130,6 @@ impl<W: LayoutElement> Monitor<W> { &mut self, right_of: &W, window: W, - activate: bool, width: ColumnWidth, is_full_width: bool, ) { @@ -141,14 +140,10 @@ impl<W: LayoutElement> Monitor<W> { .unwrap(); let workspace = &mut self.workspaces[workspace_idx]; - workspace.add_window_right_of(right_of, window, activate, width, is_full_width); + workspace.add_window_right_of(right_of, window, width, is_full_width); // After adding a new window, workspace becomes this output's own. workspace.original_output = OutputId::new(&self.output); - - if activate { - self.activate_workspace(workspace_idx); - } } pub fn add_column(&mut self, workspace_idx: usize, column: Column<W>, activate: bool) { |
