x11: Remove overeager check

window->parent must exist, it's dereferenced a few lines below.

Avoids clang complaints.
This commit is contained in:
Benjamin Otte 2014-10-05 11:24:09 +02:00
parent 66be6a018c
commit cff37ce26e

View File

@ -1043,7 +1043,7 @@ _gdk_x11_display_create_window_impl (GdkDisplay *display,
impl->override_redirect = xattributes.override_redirect;
if (window->parent && window->parent->guffaw_gravity)
if (window->parent->guffaw_gravity)
{
xattributes.win_gravity = StaticGravity;
xattributes_mask |= CWWinGravity;