Commit Graph

4 Commits

Author SHA1 Message Date
Yuxuan Shui b3d8dfb4cf
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>
2019-04-27 13:38:15 +01:00
Yuxuan Shui fb53ff50a1
list: add list_replace
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-04-14 18:29:51 +01:00
Yuxuan Shui 1ea7aaaa58 list.h: remove restrict qualifier 2019-04-08 03:11:29 +01:00
Yuxuan Shui 46d3b9c8a5
Refactor linked-list operations into a header
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-04-04 09:11:27 +01:00