mirror of
https://github.com/brl/mutter.git
synced 2025-02-04 07:34:09 +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;
|
gboolean use_alpha;
|
||||||
gfloat width, height;
|
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)
|
if (stage_gdk->window != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user