diff options
author | David Robillard <d@drobilla.net> | 2019-08-03 12:38:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:32:16 +0200 |
commit | 9995566f3980ad6092428963b63558fb599bac8d (patch) | |
tree | 7ec0b555d700cb94e5ea427226bc483ebf7d10dc /pugl/detail/x11.h | |
parent | e83c2b421d140244a6b9edb051b3e0d4aacda332 (diff) | |
download | pugl-9995566f3980ad6092428963b63558fb599bac8d.tar.gz pugl-9995566f3980ad6092428963b63558fb599bac8d.tar.bz2 pugl-9995566f3980ad6092428963b63558fb599bac8d.zip |
X11: Move atoms to world
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; }; |