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 <yshuiv7@gmail.com>
This commit is contained in:
parent
018294a65c
commit
f8f1758137
|
@ -2351,7 +2351,7 @@ 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,
|
||||
log_warn("Flags cleared on a destroyed window %#010x (%s)", w->base.id,
|
||||
w->name);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue