Fix EWMH _NET_WM_DESKTOP should be removed on withdrawn windows.

This commit is contained in:
Reginald Kennedy 2020-05-23 20:05:02 +08:00
parent 05b8c4870e
commit 60ccdcdfd5

View file

@ -12164,6 +12164,8 @@ unmapnotify(xcb_unmap_notify_event_t *e)
} else {
/* Withdraw. */
DNPRINTF(SWM_D_EVENT, "withdraw\n");
/* EWMH: need to remove _NET_WM_DESKTOP on withdraw. */
xcb_delete_property(conn, win->id, ewmh[_NET_WM_DESKTOP].atom);
set_win_state(win, XCB_ICCCM_WM_STATE_WITHDRAWN);
unmanage_window(win);
}