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:
parent
ea2b368af9
commit
2034f1677d
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue