[gtk+] x11: Remove overeager check
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Remove overeager check
- Date: Sun, 5 Oct 2014 10:04:10 +0000 (UTC)
commit cff37ce26e4aed3bbdf24e15ae2ab11552ff9b31
Author: Benjamin Otte <otte redhat com>
Date: Sun Oct 5 11:24:09 2014 +0200
x11: Remove overeager check
window->parent must exist, it's dereferenced a few lines below.
Avoids clang complaints.
gdk/x11/gdkwindow-x11.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index e18f1d0..ad61618 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]