mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
gdk: Compare integer values
Stage sizes are always pixel aligned, so we can do a proper integer comparison.
This commit is contained in:
parent
2aac32694c
commit
00efa5371d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user