aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/detail/x11.c')
-rw-r--r--pugl/detail/x11.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c
index 7bf5223..fd47db3 100644
--- a/pugl/detail/x11.c
+++ b/pugl/detail/x11.c
@@ -26,6 +26,7 @@
#include "pugl/detail/types.h"
#include "pugl/detail/x11.h"
#include "pugl/pugl.h"
+#include "pugl/pugl_stub_backend.h"
#include <X11/X.h>
#include <X11/Xatom.h>
@@ -908,3 +909,17 @@ puglSetClipboard(PuglView* const view,
XSetSelectionOwner(impl->display, atoms->CLIPBOARD, impl->win, CurrentTime);
return PUGL_SUCCESS;
}
+
+const PuglBackend*
+puglStubBackend(void)
+{
+ static const PuglBackend backend = {puglX11StubConfigure,
+ puglStubCreate,
+ puglStubDestroy,
+ puglStubEnter,
+ puglStubLeave,
+ puglStubResize,
+ puglStubGetContext};
+
+ return &backend;
+}