From ab2d09962c425670a4a7ca6ef5d92a0f06632499 Mon Sep 17 00:00:00 2001 From: Shawn Wallace Date: Thu, 17 Oct 2024 00:21:21 -0400 Subject: [PATCH] Make WL_SURFACE_ID error message clearer for user --- src/xstate/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xstate/mod.rs b/src/xstate/mod.rs index 046d460..48bd20c 100644 --- a/src/xstate/mod.rs +++ b/src/xstate/mod.rs @@ -363,7 +363,10 @@ impl XState { } xcb::Event::X(x::Event::ClientMessage(e)) => match e.r#type() { x if x == self.atoms.wl_surface_id => { - panic!("Xserver should be using WL_SURFACE_SERIAL, not WL_SURFACE_ID"); + panic!(concat!( + "Xserver should be using WL_SURFACE_SERIAL, not WL_SURFACE_ID\n", + "Your Xwayland is likely too old, it should be version 23.1 or greater." + )); } x if x == self.atoms.wl_surface_serial => { let x::ClientMessageData::Data32(data) = e.data() else {