From 69959e86dca34b23b91c79236e7c31a5a30bd64c Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sat, 4 Feb 2023 16:52:32 +0100 Subject: [PATCH] Fix memset hack --- src/state.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index aa50038..a60343d 100644 --- a/src/state.rs +++ b/src/state.rs @@ -214,7 +214,9 @@ impl Dispatch for State { // is not a particularly good background, but memsetting is slow. On clay, // toplevels that adhere to their requested dimensions only have black behind // them, so we can save the memset in this case, speeding things up. - state.needs_memset = false; + if let OperationMode::XdgToplevel = state.mode { + state.needs_memset = false; + } } _ => {} }