[metacity] xrender: remove more unnecessary NULL checks
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] xrender: remove more unnecessary NULL checks
- Date: Mon, 19 Jun 2017 20:52:21 +0000 (UTC)
commit ac17818dad3ff060639fd23587707240e80bdf96
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Jun 19 23:43:35 2017 +0300
xrender: remove more unnecessary NULL checks
src/compositor/meta-compositor-xrender.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 1a1d04c..36fa719 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -2495,7 +2495,7 @@ meta_compositor_xrender_add_window (MetaCompositor *compositor,
cw->shadow_width = 0;
cw->shadow_height = 0;
- if (window && meta_window_has_focus (window))
+ if (meta_window_has_focus (window))
cw->shadow_type = META_SHADOW_LARGE;
else
cw->shadow_type = META_SHADOW_MEDIUM;
@@ -2963,7 +2963,7 @@ meta_compositor_xrender_sync_window_geometry (MetaCompositor *compositor,
/* If the window is shaded, we store the old backing pixmap
* so we can return a proper image of the window
*/
- if (cw->window && meta_window_is_shaded (cw->window))
+ if (meta_window_is_shaded (cw->window))
{
cw->shaded.back_pixmap = cw->back_pixmap;
cw->back_pixmap = None;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]