From 2ffbdde758ab71a79df0c85107da5ac0fa5c9b6d Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Tue, 28 Jan 2020 16:42:58 +0000 Subject: [PATCH] layouts: Fix segfault on switching to wide --- src/server-context-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server-context-service.c b/src/server-context-service.c index 77022e62..ecf6d014 100644 --- a/src/server-context-service.c +++ b/src/server-context-service.c @@ -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);