[PATCH weston] compositor-wayland: Code cleanup

Dima Ryazanov dima at gmail.com
Wed May 20 01:03:53 PDT 2015


Don't do multi-assignments.

Signed-off-by: Dima Ryazanov <dima at gmail.com>
---
 src/compositor-wayland.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index aaf205b..935701a 100644
--- a/src/compositor-wayland.c
+++ b/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) {
 			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);
-- 
2.4.1



More information about the wayland-devel mailing list