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>
dev
Dima Ryazanov 10 years ago committed by Pekka Paalanen
parent 01d5c02c04
commit b7e70af346
  1. 3
      src/compositor-wayland.c

@ -1395,7 +1395,8 @@ input_handle_button(void *data, struct wl_pointer *pointer,
if (frame_status(input->output->frame) & FRAME_STATUS_CLOSE) { if (frame_status(input->output->frame) & FRAME_STATUS_CLOSE) {
wayland_output_destroy(&input->output->base); 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)) if (wl_list_empty(&input->compositor->base.output_list))
wl_display_terminate(input->compositor->base.wl_display); wl_display_terminate(input->compositor->base.wl_display);

Loading…
Cancel
Save