]> git.mdlowis.com Git - proto/labwc.git/commit
cycle: clarify the lifecycle of window switcher
authortokyo4j <hrak1529@gmail.com>
Sun, 30 Nov 2025 13:10:58 +0000 (22:10 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 30 Nov 2025 21:33:46 +0000 (21:33 +0000)
commitb6c1a9ea5922f6c86bc21bdaab8bc1c58edfa346
tree7525eb81d023a01f399c446485fd7338335bf738
parent1783b805e1387eaea78e3402c21f268f1b854116
cycle: clarify the lifecycle of window switcher

This commit clarifies the lifecycle of the window switcher (cycle) by:
- init_cycle(): initializes the window switcher (e.g. OSD).
- update_cycle(): updates the window switcher states including OSD,
  preview and outlines.
- destroy_cycle(): clears all the window switcher states.

This commit temporarily regresses by not trying to preserve the selected
view when a view is destroyed. This will be addressed in the next commit.
include/cycle.h
src/cycle/cycle.c
src/view.c