aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-05 15:01:17 +0200
committerDavid Robillard <d@drobilla.net>2020-07-05 18:47:39 +0200
commitd70aa80d71299c24ebd71537cfd620eff2b7e50d (patch)
tree2b1606491ac1f7c6a4063549fb81f5597d0b3750 /pugl/detail
parentabf44b129480937cd31d6585183d266a496ee2a4 (diff)
downloadpugl-d70aa80d71299c24ebd71537cfd620eff2b7e50d.tar.gz
pugl-d70aa80d71299c24ebd71537cfd620eff2b7e50d.tar.bz2
pugl-d70aa80d71299c24ebd71537cfd620eff2b7e50d.zip
Improve struct packing
Unfortunately there is no warning like Wpadded but only for internal padding, so that can't be turned on, but if there was, after this commit the build would be clean with it. Maybe some day...
Diffstat (limited to 'pugl/detail')
-rw-r--r--pugl/detail/types.h2
-rw-r--r--pugl/detail/x11.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/pugl/detail/types.h b/pugl/detail/types.h
index 0b0332c..edd2bd0 100644
--- a/pugl/detail/types.h
+++ b/pugl/detail/types.h
@@ -63,9 +63,9 @@ struct PuglViewImpl {
PuglBlob clipboard;
PuglNativeView parent;
uintptr_t transientParent;
- PuglHints hints;
PuglRect frame;
PuglEventConfigure lastConfigure;
+ PuglHints hints;
int defaultWidth;
int defaultHeight;
int minWidth;
diff --git a/pugl/detail/x11.h b/pugl/detail/x11.h
index 47d9225..cf647ed 100644
--- a/pugl/detail/x11.h
+++ b/pugl/detail/x11.h
@@ -61,16 +61,16 @@ struct PuglWorldInternalsImpl {
struct PuglInternalsImpl {
Display* display;
- int screen;
XVisualInfo* vi;
Window win;
-#ifdef HAVE_XCURSOR
- unsigned cursorShape;
-#endif
XIC xic;
PuglSurface* surface;
PuglEvent pendingConfigure;
PuglEvent pendingExpose;
+ int screen;
+#ifdef HAVE_XCURSOR
+ unsigned cursorShape;
+#endif
};
static inline PuglStatus