
These functions are specific for X11 windows only so we should check if the passed window is an X11 one, not just a MetaWindow since we're casting to the actual type at later point. Fixes changes part of commit e1e6534eb Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3727>