if (window->zxdg_set_min_size && window->zxdg_toplevel)
{
window->zxdg_set_min_size(window->zxdg_toplevel, w, h);
+ window->pending.min_size.w = 0;
+ window->pending.min_size.h = 0;
window->pending.min = 0;
return;
}
if (window->xdg_set_min_size && window->xdg_toplevel)
{
window->xdg_set_min_size(window->xdg_toplevel, w, h);
+ window->pending.min_size.w = 0;
+ window->pending.min_size.h = 0;
window->pending.min = 0;
return;
}
+
+ window->pending.min_size.w = w;
+ window->pending.min_size.h = h;
+ window->pending.min = EINA_TRUE;
}
EAPI void
if (window->zxdg_set_max_size && window->zxdg_toplevel)
{
window->zxdg_set_max_size(window->zxdg_toplevel, w, h);
+ window->pending.max_size.w = 0;
+ window->pending.max_size.h = 0;
window->pending.max = 0;
return;
}
if (window->xdg_set_max_size && window->xdg_toplevel)
{
window->xdg_set_max_size(window->xdg_toplevel, w, h);
+ window->pending.max_size.w = 0;
+ window->pending.max_size.h = 0;
window->pending.max = 0;
return;
}
+
+ window->pending.max_size.w = w;
+ window->pending.max_size.h = h;
+ window->pending.max = EINA_TRUE;
}
//
window->callback = wl_surface_frame(window->surface);
wl_callback_add_listener(window->callback, &_frame_listener, window);
}
+
+ if (window->pending.min)
+ ecore_wl2_window_minimum_size_set(window, window->pending.min_size.w, window->pending.min_size.h);
+
+ if (window->pending.max)
+ ecore_wl2_window_minimum_size_set(window, window->pending.max_size.w, window->pending.max_size.h);
+
/* Dispatch any state we've been saving along the way */
if (window->pending.geom)
{