gboolean has_bounds;
} pending;
+ struct {
+ gboolean should_constrain;
+ gboolean size_is_fixed;
+ } next_layout;
+
struct {
GdkWaylandToplevelExported callback;
gpointer user_data;
gboolean has_repositioned_token;
} pending;
+ struct {
+ int x;
+ int y;
+ } next_layout;
+
uint32_t reposition_token;
uint32_t received_reposition_token;
int x, y;
int width, height;
- x = wayland_surface->next_layout.popup.x - wayland_surface->shadow_left;
- y = wayland_surface->next_layout.popup.y - wayland_surface->shadow_top;
+ x = wayland_popup->next_layout.x - wayland_surface->shadow_left;
+ y = wayland_popup->next_layout.y - wayland_surface->shadow_top;
width =
wayland_surface->next_layout.configured_width +
(wayland_surface->shadow_left + wayland_surface->shadow_right);
height = wayland_surface->next_layout.configured_height +
wayland_surface->shadow_top + wayland_surface->shadow_bottom;
- if (wayland_surface->next_layout.toplevel.should_constrain)
+ if (wayland_toplevel->next_layout.should_constrain)
{
gdk_surface_constrain_size (&wayland_toplevel->geometry_hints,
wayland_toplevel->geometry_mask,
}
gdk_wayland_surface_update_size (surface, width, height, wayland_surface->scale);
- if (!wayland_surface->next_layout.toplevel.size_is_fixed)
+ if (!wayland_toplevel->next_layout.size_is_fixed)
{
- wayland_surface->next_layout.toplevel.should_constrain = FALSE;
+ wayland_toplevel->next_layout.should_constrain = FALSE;
wayland_surface->next_layout.configured_width = 0;
wayland_surface->next_layout.configured_height = 0;
}
{
if (!saved_size)
{
- wayland_surface->next_layout.toplevel.should_constrain = TRUE;
+ wayland_toplevel->next_layout.should_constrain = TRUE;
/* Save size for next time we get 0x0 */
_gdk_wayland_surface_save_size (surface);
}
else if (is_resizing)
{
- wayland_surface->next_layout.toplevel.should_constrain = TRUE;
+ wayland_toplevel->next_layout.should_constrain = TRUE;
}
else
{
- wayland_surface->next_layout.toplevel.should_constrain = FALSE;
+ wayland_toplevel->next_layout.should_constrain = FALSE;
}
- wayland_surface->next_layout.toplevel.size_is_fixed = fixed_size;
+ wayland_toplevel->next_layout.size_is_fixed = fixed_size;
wayland_surface->next_layout.configured_width = width;
wayland_surface->next_layout.configured_height = height;
}
else
{
- wayland_surface->next_layout.toplevel.should_constrain = FALSE;
- wayland_surface->next_layout.toplevel.size_is_fixed = FALSE;
+ wayland_toplevel->next_layout.should_constrain = FALSE;
+ wayland_toplevel->next_layout.size_is_fixed = FALSE;
wayland_surface->next_layout.configured_width = 0;
wayland_surface->next_layout.configured_height = 0;
}
width, height,
wayland_popup->layout);
- wayland_surface->next_layout.popup.x = x;
- wayland_surface->next_layout.popup.y = y;
+ wayland_popup->next_layout.x = x;
+ wayland_popup->next_layout.y = y;
wayland_surface->next_layout.configured_width = width;
wayland_surface->next_layout.configured_height = height;
wayland_surface->next_layout.surface_geometry_dirty = TRUE;