win: fix win_is_real_visible

Forgot to negate the expression.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-12-04 01:07:44 +00:00
parent a7be1dc1ad
commit 84ab55d730
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 3 additions and 3 deletions

View File

@ -127,8 +127,8 @@ static inline xcb_window_t win_get_leader(session_t *ps, struct managed_win *w)
* cached version of the window is displayed.
*/
static inline bool attr_pure win_is_real_visible(const struct managed_win *w) {
return w->state == WSTATE_UNMAPPED || w->state == WSTATE_DESTROYING ||
w->state == WSTATE_UNMAPPING;
return w->state != WSTATE_UNMAPPED && w->state != WSTATE_DESTROYING &&
w->state != WSTATE_UNMAPPING;
}
/**
@ -442,7 +442,7 @@ void win_process_update_flags(session_t *ps, struct managed_win *w) {
win_clear_flags(w, WIN_FLAGS_MAPPED);
}
if (win_is_real_visible(w)) {
if (!win_is_real_visible(w)) {
// Flags of invisible windows are processed when they are mapped
return;
}