aboutsummaryrefslogtreecommitdiff
path: root/pugl/pugl/detail/x11.h
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-08-19 20:53:29 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-08-19 20:53:29 +0200
commit0fbf71650d271164b73e266c301fee4db50bd28a (patch)
tree4d5d22ad43852784bb598854305e0d6ae6cde76e /pugl/pugl/detail/x11.h
parentdbfdd29ce534dcacf069223612d8bb7febab40e0 (diff)
parente8c89d26cc9e90ab8fa8673bf4f72271549f4946 (diff)
downloadd2tk-0fbf71650d271164b73e266c301fee4db50bd28a.zip
d2tk-0fbf71650d271164b73e266c301fee4db50bd28a.tar.gz
d2tk-0fbf71650d271164b73e266c301fee4db50bd28a.tar.bz2
d2tk-0fbf71650d271164b73e266c301fee4db50bd28a.tar.xz
Merge commit 'e8c89d26cc9e90ab8fa8673bf4f72271549f4946' into pugl_upstream
Diffstat (limited to 'pugl/pugl/detail/x11.h')
-rw-r--r--pugl/pugl/detail/x11.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/pugl/pugl/detail/x11.h b/pugl/pugl/detail/x11.h
new file mode 100644
index 0000000..1ead119
--- /dev/null
+++ b/pugl/pugl/detail/x11.h
@@ -0,0 +1,43 @@
+/*
+ Copyright 2012-2019 David Robillard <http://drobilla.net>
+
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+
+ THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+*/
+
+/**
+ @file x11.h Shared definitions for X11 implementation.
+*/
+
+#include "pugl/detail/implementation.h"
+
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
+struct PuglInternalsImpl {
+ Display* display;
+ int screen;
+ XVisualInfo* vi;
+ Window win;
+ 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;
+};