mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 07:08:07 +02:00
compositor-wayland: Code cleanup
Don't do multi-assignments. Signed-off-by: Dima Ryazanov <dima@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
01d5c02c04
commit
b7e70af346
1 changed files with 2 additions and 1 deletions
|
|
@ -1395,7 +1395,8 @@ input_handle_button(void *data, struct wl_pointer *pointer,
|
|||
|
||||
if (frame_status(input->output->frame) & FRAME_STATUS_CLOSE) {
|
||||
wayland_output_destroy(&input->output->base);
|
||||
input->output = input->keyboard_focus = NULL;
|
||||
input->output = NULL;
|
||||
input->keyboard_focus = NULL;
|
||||
|
||||
if (wl_list_empty(&input->compositor->base.output_list))
|
||||
wl_display_terminate(input->compositor->base.wl_display);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue