From 55876273af66893a8e4ec96d35a846c4f0fb7a1f Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 21 Dec 2024 11:35:53 +0300 Subject: [PATCH] Remove redundant equality check --- src/wayland/shell/xdg/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wayland/shell/xdg/mod.rs b/src/wayland/shell/xdg/mod.rs index 4a056d0595a6..18f06fb083a3 100644 --- a/src/wayland/shell/xdg/mod.rs +++ b/src/wayland/shell/xdg/mod.rs @@ -1993,9 +1993,7 @@ impl PopupSurface { if attributes.initial_configure_sent { if let Some(state) = attributes.last_acked { - if state != attributes.current { - attributes.current = state; - } + attributes.current = state; } } });