diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-19 13:52:08 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-19 18:29:13 +0400 |
| commit | bbb4caeb8ccba52949799e7a229ee710ffa23564 (patch) | |
| tree | 89ec3eccb472640f0dcd413bcc497e5e69ff1492 /src/layout/workspace.rs | |
| parent | d421e1fbf8f5d10e331de0572def08a8c1bb402e (diff) | |
| download | niri-bbb4caeb8ccba52949799e7a229ee710ffa23564.tar.gz niri-bbb4caeb8ccba52949799e7a229ee710ffa23564.tar.bz2 niri-bbb4caeb8ccba52949799e7a229ee710ffa23564.zip | |
Remove remaining Window-specific functions
Diffstat (limited to 'src/layout/workspace.rs')
| -rw-r--r-- | src/layout/workspace.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index b5d1b220..9a0f10e5 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -5,7 +5,6 @@ use std::time::Duration; use niri_config::{CenterFocusedColumn, PresetWidth, Struts}; use niri_ipc::SizeChange; -use smithay::desktop::space::SpaceElement; use smithay::desktop::{layer_map_for_output, Window}; use smithay::output::Output; use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel; @@ -1534,9 +1533,7 @@ impl<W: LayoutElement> Workspace<W> { true } -} -impl Workspace<Window> { pub fn refresh(&self, is_active: bool) { let bounds = self.toplevel_bounds(); @@ -1548,15 +1545,8 @@ impl Workspace<Window> { && col.active_tile_idx == tile_idx; win.set_activated(active); - win.toplevel() - .expect("no x11 support") - .with_pending_state(|state| { - state.bounds = Some(bounds); - }); - - win.toplevel() - .expect("no x11 support") - .send_pending_configure(); + win.set_bounds(bounds); + win.send_pending_configure(); win.refresh(); } } |
