Skip to content

Commit

Permalink
Merge pull request #184 from heuer/issue_183_toplevel_parent
Browse files Browse the repository at this point in the history
XdgTopLevel: Don't check parent pointer against None but ffi.NULL
  • Loading branch information
flacjacket authored May 5, 2024
2 parents 2b4f769 + 2f70814 commit aa3da66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wlroots/wlr_types/xdg_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit aa3da66

Please sign in to comment.