diff options
Diffstat (limited to 'src/x11.h')
-rw-r--r-- | src/x11.h | 31 |
1 files changed, 23 insertions, 8 deletions
@@ -27,6 +27,8 @@ typedef struct { Atom NET_WM_STATE; Atom NET_WM_STATE_DEMANDS_ATTENTION; Atom NET_WM_STATE_HIDDEN; + Atom TARGETS; + Atom text_uri_list; } PuglX11Atoms; typedef struct { @@ -35,6 +37,18 @@ typedef struct { uintptr_t id; } PuglTimer; +typedef struct { + Atom selection; + Atom property; + Window source; + Atom* formats; + char** formatStrings; + unsigned long numFormats; + uint32_t acceptedFormatIndex; + Atom acceptedFormat; + PuglBlob data; +} PuglX11Clipboard; + struct PuglWorldInternalsImpl { Display* display; PuglX11Atoms atoms; @@ -49,14 +63,15 @@ struct PuglWorldInternalsImpl { }; struct PuglInternalsImpl { - XVisualInfo* vi; - Window win; - XIC xic; - PuglSurface* surface; - PuglEvent pendingConfigure; - PuglEvent pendingExpose; - int screen; - const char* cursorName; + XVisualInfo* vi; + Window win; + XIC xic; + PuglSurface* surface; + PuglEvent pendingConfigure; + PuglEvent pendingExpose; + PuglX11Clipboard clipboard; + int screen; + const char* cursorName; }; PUGL_WARN_UNUSED_RESULT |