From b0ac6dcb492b68404d800fe8ed0c7393d487fa4b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Aug 2019 20:19:01 +0200 Subject: Add puglSetClassName() --- pugl/detail/x11.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pugl/detail/x11.c') 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, -- cgit v1.2.1