aboutsummaryrefslogtreecommitdiff
path: root/src/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols')
-rw-r--r--src/protocols/foreign_toplevel.rs4
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