diff --git a/wlroots/wlr_types/xdg_shell.py b/wlroots/wlr_types/xdg_shell.py index 3476b290..27742afa 100644 --- a/wlroots/wlr_types/xdg_shell.py +++ b/wlroots/wlr_types/xdg_shell.py @@ -276,7 +276,7 @@ def __init__(self, ptr) -> None: def parent(self) -> XdgTopLevel | None: """The parent of this toplevel""" parent_ptr = self._ptr.parent - if parent_ptr is None: + if parent_ptr == ffi.NULL: return None return XdgTopLevel(parent_ptr)