1
0
Fork 0

gdk: Fix realization in the foreign-window case

Found by Coverity.

https://bugzilla.gnome.org/show_bug.cgi?id=689496
This commit is contained in:
Jasper St. Pierre 2012-11-30 21:43:36 -05:00
parent ea2b368af9
commit 2034f1677d

View file

@ -182,7 +182,12 @@ clutter_stage_gdk_realize (ClutterStageWindow *stage_window)
gboolean use_alpha;
gfloat width, height;
if (!stage_gdk->foreign_window)
if (stage_gdk->foreign_window)
{
width = gdk_window_get_width (stage_gdk->window);
height = gdk_window_get_height (stage_gdk->window);
}
else
{
if (stage_gdk->window != NULL)
{