window: Move surface property to it subclasses

As we have specific window types per display server,
having it in the parent class makes building without wayland
harder to achieve

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2418>
This commit is contained in:
Bilal Elmoussaoui
2022-05-18 13:51:44 +02:00
committed by Marge Bot
parent c3a01e4e18
commit 6b77532a23
13 changed files with 193 additions and 45 deletions

View File

@@ -37,10 +37,10 @@ static MetaWindow *test_window = NULL;
#define assert_wayland_surface_size(window, width, height) \
{ \
g_assert_cmpint (meta_wayland_surface_get_width (window->surface), \
g_assert_cmpint (meta_wayland_surface_get_width (meta_window_get_wayland_surface (window)), \
==, \
width); \
g_assert_cmpint (meta_wayland_surface_get_height (window->surface), \
g_assert_cmpint (meta_wayland_surface_get_height (meta_window_get_wayland_surface (window)), \
==, \
height); \
}