win: handle destruction of unmanaged window
Previous destructions of unmanaged window are silently ignored, causing windows with duplicated IDs. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -421,6 +421,8 @@ struct win *add_win_top(session_t *ps, xcb_window_t id);
|
||||
void fill_win(session_t *ps, struct win *win);
|
||||
/// Unmap or destroy a window
|
||||
void unmap_win(session_t *ps, struct managed_win **, bool destroy);
|
||||
/// Destroy an unmanaged window
|
||||
void destroy_unmanaged_win(session_t *ps, struct win **w);
|
||||
|
||||
void map_win(session_t *ps, struct managed_win *w);
|
||||
void map_win_by_id(session_t *ps, xcb_window_t id);
|
||||
|
Reference in New Issue
Block a user