Wayland: implement window_get_native_handle

This will be the most useful for stuff like OpenXR, although we'd need a
way to eventually also expose the EGL handles.
This commit is contained in:
Riteo 2024-01-26 16:27:44 +01:00
parent 313f623b9d
commit d8658df94e
2 changed files with 33 additions and 0 deletions

View file

@ -200,6 +200,8 @@ public:
virtual Vector<DisplayServer::WindowID> get_window_list() const override;
virtual int64_t window_get_native_handle(HandleType p_handle_type, WindowID p_window = MAIN_WINDOW_ID) const override;
virtual WindowID get_window_at_screen_position(const Point2i &p_position) const override;
virtual void window_attach_instance_id(ObjectID p_instance, WindowID p_window_id = MAIN_WINDOW_ID) override;