return;
}
- if (context->model)
+ if ((context->model) && (context->model->resource))
wl_text_input_send_commit_string(context->model->resource,
serial, text);
}
return;
}
- if (context->model)
+ if ((context->model) && (context->model->resource))
wl_text_input_send_preedit_string(context->model->resource,
serial, text, commit);
}
return;
}
- if (context->model)
+ if ((context->model) && (context->model->resource))
wl_text_input_send_preedit_styling(context->model->resource,
index, length, style);
}
return;
}
- if (context->model)
+ if ((context->model) && (context->model->resource))
wl_text_input_send_preedit_cursor(context->model->resource,
cursor);
}
return;
}
- if (context->model)
+ if ((context->model) && (context->model->resource))
wl_text_input_send_delete_surrounding_text(context->model->resource,
index, length);
}
return;
}
- if (context->model)
+ if ((context->model) && (context->model->resource))
wl_text_input_send_cursor_position(context->model->resource,
index, anchor);
}
return;
}
- if (context->model)
+ if ((context->model) && (context->model->resource))
wl_text_input_send_modifiers_map(context->model->resource, map);
}
return;
}
- if (context->model)
+ if ((context->model) && (context->model->resource))
wl_text_input_send_keysym(context->model->resource,
serial, time, sym, state, modifiers);
}
return;
}
- if (context->model)
+ if ((context->model) && (context->model->resource))
wl_text_input_send_language(context->model->resource,
serial, language);
}
return;
}
- if (context->model)
+ if ((context->model) && (context->model->resource))
wl_text_input_send_text_direction(context->model->resource,
serial, direction);
}