use scm_call_3 instead of scm_call to call layout-demand-handler

This commit is contained in:
Leon Henrik Plickat
2023-12-29 10:19:03 +01:00
parent 0bbe968afe
commit 98f6c30e45

View File

@@ -60,12 +60,11 @@ static void *call_layout_demand_handler (void *data)
{ {
struct Layout_demand_parameters *params = (struct Layout_demand_parameters *)data; struct Layout_demand_parameters *params = (struct Layout_demand_parameters *)data;
SCM call_result = scm_call( SCM call_result = scm_call_3(
scm_variable_ref(scm_c_lookup("layout-demand-handler")), scm_variable_ref(scm_c_lookup("layout-demand-handler")),
scm_from_uint32(params->view_count), scm_from_uint32(params->view_count),
scm_from_uint32(params->width), scm_from_uint32(params->width),
scm_from_uint32(params->height), scm_from_uint32(params->height)
SCM_UNDEFINED
); );
if ( scm_is_false(scm_list_p(call_result)) == 1 ) if ( scm_is_false(scm_list_p(call_result)) == 1 )