mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
default plugin: use the right type for varargs
Coordinates in Clutter are double, so twice the size of an int, and if not correctly casted memory corruption occurs. https://bugzilla.gnome.org/show_bug.cgi?id=673809
This commit is contained in:
parent
93d06d4368
commit
3aad30143c
@ -479,8 +479,8 @@ minimize (MetaPlugin *plugin, MetaWindowActor *window_actor)
|
|||||||
MINIMIZE_TIMEOUT,
|
MINIMIZE_TIMEOUT,
|
||||||
"scale-x", 0.0,
|
"scale-x", 0.0,
|
||||||
"scale-y", 0.0,
|
"scale-y", 0.0,
|
||||||
"x", icon_geometry.x,
|
"x", (double)icon_geometry.x,
|
||||||
"y", icon_geometry.y,
|
"y", (double)icon_geometry.y,
|
||||||
NULL);
|
NULL);
|
||||||
apriv->tml_minimize = clutter_animation_get_timeline (animation);
|
apriv->tml_minimize = clutter_animation_get_timeline (animation);
|
||||||
data->plugin = plugin;
|
data->plugin = plugin;
|
||||||
|
Loading…
Reference in New Issue
Block a user