aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/x11.h
diff options
context:
space:
mode:
authorJP Cimalando <jp-dev@inbox.ru>2019-07-30 00:18:05 +0200
committerDavid Robillard <d@drobilla.net>2019-07-31 21:18:17 +0200
commitbb0834637c7620870d784180436c90492c89db9b (patch)
treef8b25b86bb1a5d6f6606b86ca4b8f41f6ac54a61 /pugl/detail/x11.h
parent568d40cd8454ae20bb47cfb06d14d644ba82711d (diff)
downloadpugl-bb0834637c7620870d784180436c90492c89db9b.tar.gz
pugl-bb0834637c7620870d784180436c90492c89db9b.tar.bz2
pugl-bb0834637c7620870d784180436c90492c89db9b.zip
X11: Support UTF8 in window titles
It's possible that this does bad things if a UTF8 string is used on a system that does not support it (because XStoreName is still called), but I have no idea how likely this scenario is. Leaving it this way because it means the ASCII case will still work everywhere, and it's easy enough to avoid if this is a problem.
Diffstat (limited to 'pugl/detail/x11.h')
-rw-r--r--pugl/detail/x11.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pugl/detail/x11.h b/pugl/detail/x11.h
index 98f42b0..1ead119 100644
--- a/pugl/detail/x11.h
+++ b/pugl/detail/x11.h
@@ -33,8 +33,10 @@ struct PuglInternalsImpl {
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;