[mutter] wayland/cursor-surface: Remove unnecessary NULL check
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland/cursor-surface: Remove unnecessary NULL check
- Date: Fri, 15 Jun 2018 19:12:25 +0000 (UTC)
commit b7e93889067e0ec95ca9dfd218d57d58d1c2f668
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon Apr 30 11:59:22 2018 +0200
wayland/cursor-surface: Remove unnecessary NULL check
The priv->cursor_sprite is created on init() and destroyed on dispose()
so it will never be NULL when updating the cursor sprite texture.
https://gitlab.gnome.org/GNOME/mutter/issues/77
src/wayland/meta-wayland-cursor-surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wayland/meta-wayland-cursor-surface.c b/src/wayland/meta-wayland-cursor-surface.c
index 7013205c0..91a9fb95d 100644
--- a/src/wayland/meta-wayland-cursor-surface.c
+++ b/src/wayland/meta-wayland-cursor-surface.c
@@ -61,7 +61,7 @@ update_cursor_sprite_texture (MetaWaylandCursorSurface *cursor_surface)
g_return_if_fail (!buffer || buffer->texture);
- if (!priv->cursor_renderer || !cursor_sprite)
+ if (!priv->cursor_renderer)
return;
if (buffer)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]