gdk: Compare integer values

Stage sizes are always pixel aligned, so we can do a proper
integer comparison.
This commit is contained in:
Emmanuele Bassi 2015-01-12 15:05:02 +00:00
parent 2aac32694c
commit 00efa5371d

View File

@ -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,