From 00efa5371d709c134695a3c142b310f1b630ce0a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 12 Jan 2015 15:05:02 +0000 Subject: [PATCH] gdk: Compare integer values Stage sizes are always pixel aligned, so we can do a proper integer comparison. --- clutter/gdk/clutter-event-gdk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/gdk/clutter-event-gdk.c b/clutter/gdk/clutter-event-gdk.c index 7675cc18e..9f7dec7a8 100644 --- a/clutter/gdk/clutter-event-gdk.c +++ b/clutter/gdk/clutter-event-gdk.c @@ -269,8 +269,8 @@ clutter_gdk_handle_event (GdkEvent *gdk_event) clutter_actor_get_size (CLUTTER_ACTOR (stage), &w, &h); - if (w != gdk_event->configure.width || - h != gdk_event->configure.height) + if ((int) w != gdk_event->configure.width || + (int) h != gdk_event->configure.height) { clutter_actor_set_size (CLUTTER_ACTOR (stage), gdk_event->configure.width,