mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-18 06:38:38 +01:00
macOS has no window class, so a Class rule matched the role, which every ordinary window shares (AXWindow) and which tells nothing: the subrole is what tells an ordinary window (AXStandardWindow) from a dialog, a floating panel or a system dialog. A Class rule already matched either of the two when the daemon decided to manage, float or place a window on a workspace; the state showed neither as a class, and an initial placement rule saw only the role. The class of a window is now its subrole, or the role when it has none (window::class_of). The state of a window has it as `details.class`, as the state of a Windows or a KDE window does, so the tools that read the state read it the same on every platform; a state from an older daemon without it still parses. The rule a toggle of floating adds names the class, and ignore-rule matches a window once when it matches by both role and subrole. A rule that names AXWindow keeps matching, because rules take either.