diff options
Diffstat (limited to 'pugl/detail/x11.h')
-rw-r--r-- | pugl/detail/x11.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/pugl/detail/x11.h b/pugl/detail/x11.h index 6671a95..54881af 100644 --- a/pugl/detail/x11.h +++ b/pugl/detail/x11.h @@ -23,8 +23,18 @@ #include <X11/Xlib.h> #include <X11/Xutil.h> +typedef struct { + Atom UTF8_STRING; + Atom WM_PROTOCOLS; + Atom WM_DELETE_WINDOW; + Atom NET_WM_NAME; + Atom NET_WM_STATE; + Atom NET_WM_STATE_DEMANDS_ATTENTION; +} PuglX11Atoms; + struct PuglWorldInternalsImpl { - Display* display; + Display* display; + PuglX11Atoms atoms; }; struct PuglInternalsImpl { @@ -35,13 +45,4 @@ struct PuglInternalsImpl { XIM xim; XIC xic; PuglSurface* surface; - - struct { - Atom UTF8_STRING; - Atom WM_PROTOCOLS; - Atom WM_DELETE_WINDOW; - Atom NET_WM_NAME; - Atom NET_WM_STATE; - Atom NET_WM_STATE_DEMANDS_ATTENTION; - } atoms; }; |