From 5ac350d51c0f16be3e40355bcb25cf23d34cc662 Mon Sep 17 00:00:00 2001 From: Christian Meissl Date: Sat, 24 Feb 2024 18:31:54 +0100 Subject: chore: update smithay --- src/protocols/foreign_toplevel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protocols') 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 -- cgit