GdkWindow: Struct packing improvements
This commit is contained in:
@ -179,6 +179,7 @@ struct _GdkWindow
|
|||||||
gint x;
|
gint x;
|
||||||
gint y;
|
gint y;
|
||||||
|
|
||||||
|
GdkEventMask event_mask;
|
||||||
gint extension_events;
|
gint extension_events;
|
||||||
|
|
||||||
GList *filters;
|
GList *filters;
|
||||||
@ -195,6 +196,8 @@ struct _GdkWindow
|
|||||||
guint8 depth;
|
guint8 depth;
|
||||||
guint8 resize_count;
|
guint8 resize_count;
|
||||||
|
|
||||||
|
gint8 toplevel_window_type;
|
||||||
|
|
||||||
GdkWindowState state;
|
GdkWindowState state;
|
||||||
|
|
||||||
guint guffaw_gravity : 1;
|
guint guffaw_gravity : 1;
|
||||||
@ -208,23 +211,6 @@ struct _GdkWindow
|
|||||||
guint focus_on_map : 1;
|
guint focus_on_map : 1;
|
||||||
guint shaped : 1;
|
guint shaped : 1;
|
||||||
guint support_multidevice : 1;
|
guint support_multidevice : 1;
|
||||||
|
|
||||||
GdkEventMask event_mask;
|
|
||||||
|
|
||||||
guint update_and_descendants_freeze_count;
|
|
||||||
|
|
||||||
/* The GdkWindow that has the impl, ref:ed if another window.
|
|
||||||
* This ref is required to keep the wrapper of the impl window alive
|
|
||||||
* for as long as any GdkWindow references the impl. */
|
|
||||||
GdkWindow *impl_window;
|
|
||||||
int abs_x, abs_y; /* Absolute offset in impl */
|
|
||||||
gint width, height;
|
|
||||||
guint32 clip_tag;
|
|
||||||
cairo_region_t *clip_region; /* Clip region (wrt toplevel) in window coords */
|
|
||||||
cairo_region_t *clip_region_with_children; /* Clip region in window coords */
|
|
||||||
GdkCursor *cursor;
|
|
||||||
GHashTable *device_cursor;
|
|
||||||
gint8 toplevel_window_type;
|
|
||||||
guint synthesize_crossing_event_queued : 1;
|
guint synthesize_crossing_event_queued : 1;
|
||||||
guint effective_visibility : 2;
|
guint effective_visibility : 2;
|
||||||
guint visibility : 2; /* The visibility wrt the toplevel (i.e. based on clip_region) */
|
guint visibility : 2; /* The visibility wrt the toplevel (i.e. based on clip_region) */
|
||||||
@ -232,7 +218,22 @@ struct _GdkWindow
|
|||||||
guint viewable : 1; /* mapped and all parents mapped */
|
guint viewable : 1; /* mapped and all parents mapped */
|
||||||
guint applied_shape : 1;
|
guint applied_shape : 1;
|
||||||
|
|
||||||
guint num_offscreen_children;
|
/* The GdkWindow that has the impl, ref:ed if another window.
|
||||||
|
* This ref is required to keep the wrapper of the impl window alive
|
||||||
|
* for as long as any GdkWindow references the impl. */
|
||||||
|
GdkWindow *impl_window;
|
||||||
|
|
||||||
|
guint update_and_descendants_freeze_count;
|
||||||
|
|
||||||
|
gint abs_x, abs_y; /* Absolute offset in impl */
|
||||||
|
gint width, height;
|
||||||
|
guint32 clip_tag;
|
||||||
|
|
||||||
|
cairo_region_t *clip_region; /* Clip region (wrt toplevel) in window coords */
|
||||||
|
cairo_region_t *clip_region_with_children; /* Clip region in window coords */
|
||||||
|
GdkCursor *cursor;
|
||||||
|
GHashTable *device_cursor;
|
||||||
|
|
||||||
GdkWindowPaint *implicit_paint;
|
GdkWindowPaint *implicit_paint;
|
||||||
|
|
||||||
GList *outstanding_moves;
|
GList *outstanding_moves;
|
||||||
@ -248,6 +249,8 @@ struct _GdkWindow
|
|||||||
GHashTable *source_event_masks;
|
GHashTable *source_event_masks;
|
||||||
gulong device_added_handler_id;
|
gulong device_added_handler_id;
|
||||||
gulong device_changed_handler_id;
|
gulong device_changed_handler_id;
|
||||||
|
|
||||||
|
guint num_offscreen_children;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GDK_WINDOW_TYPE(d) (((GDK_WINDOW (d)))->window_type)
|
#define GDK_WINDOW_TYPE(d) (((GDK_WINDOW (d)))->window_type)
|
||||||
|
|||||||
Reference in New Issue
Block a user