adding xwayland support

This commit is contained in:
2026-04-06 23:38:06 +07:00
parent 7601b86450
commit e995f748b2
10 changed files with 133 additions and 11 deletions
+10 -1
View File
@@ -6,7 +6,16 @@
bool absinthe_toplevel_is_x11(struct absinthe_toplevel *toplevel)
{
#ifdef XWAYLAND
return toplevel->type == ABSINTHE_TOPLEVEL_TYPE_X11;
return toplevel->type == ABSINTHE_TOPLEVEL_X11;
#endif
return false;
}
bool absinthe_toplevel_is_unmanaged(struct absinthe_toplevel *toplevel)
{
#ifdef XWAYLAND
if (absinthe_toplevel_is_x11(toplevel))
return toplevel->toplevel.x11->override_redirect;
#endif
return false;
}