event: handle reparent to the same parent

When a window is reparented to the same parent again, we should just
move it to the top of the stack, instead of add it again.

Also a slight refactor restack_win.

Fixes #164

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-04-27 13:36:42 +01:00
parent cfbd1819ed
commit ad8211e341
6 changed files with 193 additions and 162 deletions

View File

@@ -47,9 +47,6 @@ struct managed_win *recheck_focus(session_t *ps);
/// Handle configure event of a root window
void configure_root(session_t *ps, int width, int height);
/// Handle configure event of a regular window
void configure_win(session_t *ps, xcb_configure_notify_event_t *ce);
void circulate_win(session_t *ps, xcb_circulate_notify_event_t *ce);
void update_ewmh_active_win(session_t *ps);