[mutter/wip/carlosg/unthrottled-wayland: 12/27] backends: Remove superfluous intermediate variable
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/unthrottled-wayland: 12/27] backends: Remove superfluous intermediate variable
- Date: Tue, 7 Dec 2021 17:50:03 +0000 (UTC)
commit f2d07057eafb24b601ecdec1d5e98235d7e7bf1a
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jun 25 18:45:01 2021 +0200
backends: Remove superfluous intermediate variable
Having this intermediate variable is not of much use anymore, remove
it.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1915>
src/backends/meta-cursor-renderer.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/backends/meta-cursor-renderer.c b/src/backends/meta-cursor-renderer.c
index 5ed0fb8fcd..c4fdbf19e5 100644
--- a/src/backends/meta-cursor-renderer.c
+++ b/src/backends/meta-cursor-renderer.c
@@ -395,7 +395,6 @@ meta_cursor_renderer_update_cursor (MetaCursorRenderer *renderer,
MetaCursorSprite *cursor_sprite)
{
MetaCursorRendererPrivate *priv = meta_cursor_renderer_get_instance_private (renderer);
- gboolean handled_by_backend;
if (cursor_sprite)
{
@@ -407,11 +406,9 @@ meta_cursor_renderer_update_cursor (MetaCursorRenderer *renderer,
(int) priv->current_y);
}
- handled_by_backend =
+ priv->handled_by_backend =
META_CURSOR_RENDERER_GET_CLASS (renderer)->update_cursor (renderer,
cursor_sprite);
- if (handled_by_backend != priv->handled_by_backend)
- priv->handled_by_backend = handled_by_backend;
meta_cursor_renderer_update_stage_overlay (renderer, cursor_sprite);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]