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 committed by Marco Peereboom
parent 1a5bc8e907
commit ca9a7658a1

View file

@ -12200,6 +12200,8 @@ unmapnotify(xcb_unmap_notify_event_t *e)
} else { } else {
/* Withdraw. */ /* Withdraw. */
DNPRINTF(SWM_D_EVENT, "withdraw\n"); 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); set_win_state(win, XCB_ICCCM_WM_STATE_WITHDRAWN);
unmanage_window(win); unmanage_window(win);
} }