Module mru

Module mru 

Source
Expand description

MRU (Most Recently Used) window tracking

Tracks current and previous windows to enable proper Alt+Tab behavior. Quick Alt+Tab switches to the previous window by ID lookup.

Uses file locking to prevent race conditions during concurrent access.

Structs§

MruState
MRU state containing current and previous window IDs

Functions§

get_current_window
Returns the current window ID.
get_previous_window
Returns the previous window ID for quick Alt+Tab.
load_mru_state
Loads MRU state with shared lock for consistent reads.
reorder_for_mru
Reorders windows placing current window at the end.
save_activated_window
Saves MRU state when activating a window.