[mutter/wip/carlosg/input-thread: 40/104] clutter: Drop unused field in ClutterInputDevice struct




commit 02b1448c0777c53949248ab1456004a5e046c25e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jun 5 19:31:27 2020 +0200

    clutter: Drop unused field in ClutterInputDevice struct
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403

 clutter/clutter/clutter-input-device-private.h | 1 -
 clutter/clutter/clutter-input-device.c         | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-input-device-private.h b/clutter/clutter/clutter-input-device-private.h
index 9121028f69..9b5234e1e7 100644
--- a/clutter/clutter/clutter-input-device-private.h
+++ b/clutter/clutter/clutter-input-device-private.h
@@ -134,7 +134,6 @@ struct _ClutterInputDevice
   int previous_y;
   uint32_t previous_time;
   int previous_button_number;
-  ClutterModifierType previous_state;
 
   GArray *axes;
 
diff --git a/clutter/clutter/clutter-input-device.c b/clutter/clutter/clutter-input-device.c
index 15c73891c0..3227ce050d 100644
--- a/clutter/clutter/clutter-input-device.c
+++ b/clutter/clutter/clutter-input-device.c
@@ -515,7 +515,7 @@ clutter_input_device_init (ClutterInputDevice *self)
   self->current_x = self->previous_x = -1;
   self->current_y = self->previous_y = -1;
   self->current_button_number = self->previous_button_number = -1;
-  self->current_state = self->previous_state = 0;
+  self->current_state = 0;
 
   self->touch_sequences_info =
     g_hash_table_new_full (NULL, NULL,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]