Infrastructure for passing layer shell config from python to glfw

This commit is contained in:
Kovid Goyal
2024-03-24 11:54:39 +05:30
parent fe5ccc144b
commit 56978189e0
4 changed files with 50 additions and 11 deletions

View File

@@ -66,6 +66,13 @@ class SignalInfo(NamedTuple):
sival_ptr: int
class LayerShellConfig(NamedTuple):
type: int = 0
edge: int = 0
focus_policy: int = 0
output_name: Optional[str] = None
def mod_to_names(mods: int, has_kitty_mod: bool = False, kitty_mod: int = 0) -> Iterator[str]:
if has_kitty_mod:
mods &= ~kitty_mod