layouts: Fix segfault on switching to wide

This commit is contained in:
Dorota Czaplejewicz
2020-01-28 16:42:58 +00:00
parent ac360b610f
commit 2ffbdde758

View File

@ -145,7 +145,7 @@ on_surface_configure(PhoshLayerSurface *surface, ServerContextService *context)
enum squeek_arrangement_kind new_type = get_type((uint32_t)width, (uint32_t)height);
if (context->last_type != new_type) {
context->last_type = new_type;
eekboard_context_service_update_layout(EEKBOARD_CONTEXT_SERVICE(context), context->last_type);
eekboard_context_service_update_layout(context->state, context->last_type);
}
guint desired_height = calculate_height(width);