From 81375be326a1a2ca9198bdb119d5ba8bfabdaa1f Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 22 Dec 2021 09:28:01 +0100 Subject: Fix implicit conversion changes signedness: 'gboolean' to 'guint' --- src/core/window.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/window.c') diff --git a/src/core/window.c b/src/core/window.c index 55badf54..8e15bed6 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -432,7 +432,7 @@ meta_window_new_with_attrs (MetaDisplay *display, /* avoid tons of stack updates */ meta_stack_freeze (window->screen->stack); - window->has_shape = has_shape; + window->has_shape = (has_shape != FALSE); window->rect.x = attrs->x; window->rect.y = attrs->y; @@ -7298,7 +7298,7 @@ update_move_timeout (gpointer data) MetaWindow *window = data; update_move (window, - window->display->grab_last_user_action_was_snap, + window->display->grab_last_user_action_was_snap != FALSE, window->display->grab_latest_motion_x, window->display->grab_latest_motion_y); @@ -7604,7 +7604,7 @@ update_resize_timeout (gpointer data) MetaWindow *window = data; update_resize (window, - window->display->grab_last_user_action_was_snap, + window->display->grab_last_user_action_was_snap != FALSE, window->display->grab_latest_motion_x, window->display->grab_latest_motion_y, TRUE); @@ -7968,7 +7968,7 @@ meta_window_handle_mouse_grab_op_event (MetaWindow *window, case META_GRAB_OP_KEYBOARD_RESIZING_NW: /* no pointer round trip here, to keep in sync */ update_resize (window, - window->display->grab_last_user_action_was_snap, + window->display->grab_last_user_action_was_snap != FALSE, window->display->grab_latest_motion_x, window->display->grab_latest_motion_y, TRUE); @@ -7991,7 +7991,7 @@ meta_window_handle_mouse_grab_op_event (MetaWindow *window, * mouse button and they almost certainly do not want a * non-snapped movement to occur from the button release. */ - if (!window->display->grab_last_user_action_was_snap) + if (window->display->grab_last_user_action_was_snap == FALSE) { if (meta_grab_op_is_moving (window->display->grab_op)) { -- cgit v1.2.1