From f8f1758137726b5a52862159c39324fbb7732c8a Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 11 Apr 2020 02:39:20 +0100 Subject: [PATCH] win: demote log_error in win_clear_flags Flags might be cleared on a destroyed window, if it's set because of an event received before the window is destroyed. Eventually we want to delay the handling of destroy notify as well. Signed-off-by: Yuxuan Shui --- src/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win.c b/src/win.c index c8c284b..5e5934c 100644 --- a/src/win.c +++ b/src/win.c @@ -2351,8 +2351,8 @@ void win_set_flags(struct managed_win *w, uint64_t flags) { void win_clear_flags(struct managed_win *w, uint64_t flags) { log_debug("Clear flags %lu from window %#010x (%s)", flags, w->base.id, w->name); if (unlikely(w->state == WSTATE_DESTROYING)) { - log_error("Flags cleared on a destroyed window %#010x (%s)", w->base.id, - w->name); + log_warn("Flags cleared on a destroyed window %#010x (%s)", w->base.id, + w->name); return; }