gecko-dev/widget/gtk/mozwayland
Robert Mader c3cca144b4 Bug 1640053 - Implement screen info for Wayland, r=stransky
Implement `get_wayland_screen_info()` by copying from `weston-info`.
This allows us to get the actual number of screens. Previously, we'd
fall back to using the info from Xwayland, which always reports one
single big screen with the combined size (e.g. 3840x1080 instead of
2x1920x1080). Also, this avoids opening a X11 connection.

Note:
 - monitor scale is recorded but not used yet
 - the code could be simplified. However, keeping the weston-info
structure would allow us to easily add queries for other extensions
in the future if desired.

Differential Revision: https://phabricator.services.mozilla.com/D101383
2021-01-13 23:51:59 +00:00
..
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
mozwayland.c Bug 1640053 - Implement screen info for Wayland, r=stransky 2021-01-13 23:51:59 +00:00
mozwayland.h Bug 1675453 [Wayland] Include DMABufLibWrapper.h in nsWaylandDisplay.h header and update wayland headers, r=jhorak 2020-11-06 14:13:20 +00:00