mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
This adds support for getting a Wayland `wl_surface` from `Window.GetHandle`. The behavior of the function is now to return either an X11 window ID or Wayland `wl_surface` if running a GTK build on those backends, return 0 on any other GTK backend, or else return the C++ `GetHandle` result unmodified. This is the simplest fix for the Wayland issue without worrying about breaking existing user code, as this function already failed for any non-X11 GTK build. Returning 0 on non-X11/Wayland GTK platforms sidesteps the issue of making sure e.g. GTK Mac GetHandle returns the same type as native Cocoa Mac GetHandle.
This directory holds source code that is not generated by any of the tools, but is edited by hand instead. It may include C/C++, SIP or Python code as needed.