Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win: make sure window's client_win can't be XCB_NONE
This is a follow up to 81d137a and bug #704. Basically a window will have a `XCB_NONE` as `client_win` if its previous client_win detached and then the window itself is immediately destroyed. Because the window is destroyed we couldn't call `win_recheck_client` so its `client_win` will remain `XCB_NONE`. However, it turns out we have a convention of setting `client_win` to the window itself if windows that don't have a client window. So make sure this convention is followed even for destroyed windows. Doesn't really fix anything, just to make sure an invariant holds. Related: #704 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
- Loading branch information