mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 12:12:25 +00:00
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
@ -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…
Reference in New Issue
Block a user