Wayland clients are required to use MAP_PRIVATE starting with version 7 of the wl_seat protocol. Signed-off-by: Julian Orth <ju.orth@gmail.com>
Users on Wayland are displeased that they cannot see their hotkey bindings. This enables key reporting like X11, and has the infrastructure in place in case Wayland ever decides to allow for capturing input.
Introduce the OBS_NIX_PLATFORM_WAYLAND enum value, and try to detect it when OBS Studio runs by looking into the platform name.