Jonas Ådahl
b0a73f04b7
main: Move rect related macro to util-private.h
...
No reason that it should be in main-private.h, lets place it in
util-private.h. This also mean we can remove main-private.h.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1833 >
2021-05-17 16:08:42 +00:00
Carlos Garnacho
24dbfbfcf2
backends: Store whether views are scaled in MetaViewportInfo
...
We need to pass this info from the main thread, as that pokes the
MetaMonitorManager underneath. Store it in the MetaViewportInfo
so that the input thread can use this information.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1793 >
2021-04-13 10:32:14 +00:00
Carlos Garnacho
1377c2a97e
backends: Add method to get extents from viewport info
...
This way we know the stage extents without poking the stage.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403 >
2020-11-27 15:14:33 +00:00
Carlos Garnacho
0c1d48bd08
backends: Add simple object to delegate logical monitor layout queries
...
This object can be passed to random places, and be trusted to remain unchanged
till replaced. Makes it an ideal replacement for MetaMonitorManager across
threads.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403 >
2020-11-27 15:14:33 +00:00