summaryrefslogtreecommitdiff
path: root/gdk/gdkdeviceprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-24 22:57:00 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-25 11:57:37 -0400
commit73f4f518b88fa9145fc9ef71629d375aa1e702f0 (patch)
tree75f0c43318d12ddd65e851958589ae361a8dc0af /gdk/gdkdeviceprivate.h
parent6e9dbba130b37cbc538d1d3a14cdb64f6c904f43 (diff)
downloadgtk+-73f4f518b88fa9145fc9ef71629d375aa1e702f0.tar.gz
gdk: Improve struct packing in places
Plug some holes in our structs by rearranging a few fields. This is was done looking at pahole output.
Diffstat (limited to 'gdk/gdkdeviceprivate.h')
-rw-r--r--gdk/gdkdeviceprivate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkdeviceprivate.h b/gdk/gdkdeviceprivate.h
index 07184a3abe..93c7b7a558 100644
--- a/gdk/gdkdeviceprivate.h
+++ b/gdk/gdkdeviceprivate.h
@@ -40,13 +40,13 @@ struct _GdkDevice
GdkInputSource source;
gboolean has_cursor;
GdkAxisFlags axis_flags;
+ GdkDeviceType type;
GdkDisplay *display;
/* The paired logical device for logical devices,
* or the associated logical device for physical ones
*/
GdkDevice *associated;
GList *physical_devices;
- GdkDeviceType type;
GArray *axes;
guint num_touches;