diff options
author | David Robillard <d@drobilla.net> | 2019-08-04 20:19:01 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:34:39 +0200 |
commit | b0ac6dcb492b68404d800fe8ed0c7393d487fa4b (patch) | |
tree | 41d0050ef6d33bfe9f2186195168e36f8a8b8f3a /pugl/detail/x11.c | |
parent | 075c5c5927e511dd03d9608a285ed58ef395120b (diff) | |
download | pugl-b0ac6dcb492b68404d800fe8ed0c7393d487fa4b.tar.gz pugl-b0ac6dcb492b68404d800fe8ed0c7393d487fa4b.tar.bz2 pugl-b0ac6dcb492b68404d800fe8ed0c7393d487fa4b.zip |
Add puglSetClassName()
Diffstat (limited to 'pugl/detail/x11.c')
-rw-r--r-- | pugl/detail/x11.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index ea8367c..f000b02 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -211,6 +211,9 @@ puglCreateWindow(PuglView* view, const char* title) XSizeHints sizeHints = getSizeHints(view); XSetNormalHints(display, win, &sizeHints); + XClassHint classHint = { world->className, world->className }; + XSetClassHint(display, win, &classHint); + if (title) { XStoreName(display, win, title); XChangeProperty(display, win, atoms->NET_WM_NAME, |