diff options
| author | Christian Meissl <meissl.christian@gmail.com> | 2024-02-24 18:31:54 +0100 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-28 13:19:41 +0400 |
| commit | 5ac350d51c0f16be3e40355bcb25cf23d34cc662 (patch) | |
| tree | a8e811d97b60b614216fbc4942c0562fe803bf78 /src/protocols | |
| parent | 494e98c1235133fd5267bfdfb9a5468f1115deff (diff) | |
| download | niri-5ac350d51c0f16be3e40355bcb25cf23d34cc662.tar.gz niri-5ac350d51c0f16be3e40355bcb25cf23d34cc662.tar.bz2 niri-5ac350d51c0f16be3e40355bcb25cf23d34cc662.zip | |
chore: update smithay
Diffstat (limited to 'src/protocols')
| -rw-r--r-- | src/protocols/foreign_toplevel.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/foreign_toplevel.rs b/src/protocols/foreign_toplevel.rs index b574b51c..f1516cc4 100644 --- a/src/protocols/foreign_toplevel.rs +++ b/src/protocols/foreign_toplevel.rs @@ -96,7 +96,7 @@ pub fn refresh(state: &mut State) { // the previous window and only then activate the newly focused window. let mut focused = None; state.niri.layout.with_windows(|window, output| { - let wl_surface = window.toplevel().wl_surface(); + let wl_surface = window.toplevel().expect("no x11 support").wl_surface(); with_states(wl_surface, |states| { let role = states @@ -116,7 +116,7 @@ pub fn refresh(state: &mut State) { // Finally, refresh the focused window. if let Some((window, output)) = focused { - let wl_surface = window.toplevel().wl_surface(); + let wl_surface = window.toplevel().expect("no x11 support").wl_surface(); with_states(wl_surface, |states| { let role = states |
