bc16268d30
secondary-layout-symbol is the symbol of the layout to switch to when the layout symbol is left-clicked. This symbol is used to look up the memory address of the layout to set. The default is the monocle layout. setlayoutsafe is the dwm command name for setting layouts. The argument is the layout memory address. Left-clicking switches to the layout represented by secondary-layout-symbol, and right-clicking switches to the previous layout (specified by an argument of 0). To keep track of the different layouts, the layouts are retrieved in the constructor if the layout label is included and stored in m_layouts. m_current_layout is updated with the address of the current layout. m_default_layout is updated in the constructor to the first layout in the array which is the default layout in dwm. m_secondary_layout is updated to the address of the layout identified by secondary-layout-symbol. The builder adds click handlers (if layout label is included) to the layout symbol as described above. Left-clicking toggles between the secondary layout and the default layout. Right-clicking toggles between the previous layout and the current layout. find_layout are a pair of functions for finding a layout by address or symbol from the m_layouts array. |
||
---|---|---|
.. | ||
adapters | ||
cairo | ||
components | ||
drawtypes | ||
events | ||
modules | ||
tags | ||
utils | ||
x11 | ||
CMakeLists.txt | ||
common.hpp | ||
debug.hpp | ||
errors.hpp | ||
settings.hpp.cmake |