[gtk+] Improve struct packing in GdkWindowImplWayland



commit 4b13b93394e7c28eb1263558b063db8ace912f3b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Sep 21 23:35:02 2013 -0400

    Improve struct packing in GdkWindowImplWayland

 gdk/wayland/gdkwindow-wayland.c |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 5e001f1..d0aac90 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -104,8 +104,11 @@ struct _GdkWindowImplWayland
   struct wl_shell_surface *shell_surface;
   struct gtk_surface *gtk_surface;
   unsigned int mapped : 1;
-  GdkWindow *transient_for;
+  unsigned int fullscreen : 1;
+  unsigned int use_custom_surface : 1;
+  unsigned int pending_commit : 1;
   GdkWindowTypeHint hint;
+  GdkWindow *transient_for;
 
   /* The surface which is being "drawn to" to */
   cairo_surface_t *cairo_surface;
@@ -124,32 +127,23 @@ struct _GdkWindowImplWayland
 
   int focus_count;
 
-  gulong map_serial;    /* Serial of last transition from unmapped */
-
-  cairo_surface_t *icon_pixmap;
-  cairo_surface_t *icon_mask;
-
   /* Time of most recent user interaction. */
   gulong user_time;
 
   GdkGeometry geometry_hints;
   GdkWindowHints geometry_mask;
 
+  guint32 grab_time;
   GdkDevice *grab_device;
   struct wl_seat *grab_input_seat;
-  guint32 grab_time;
 
-  gboolean fullscreen;
   struct
     {
       int width, height;
     } saved_fullscreen, saved_maximized;
 
-  gboolean use_custom_surface;
-
-  guint32 scale;
-  gboolean pending_commit;
   gint64 pending_frame_counter;
+  guint32 scale;
 };
 
 struct _GdkWindowImplWaylandClass


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