aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-11 15:07:23 -0500
committerDavid Robillard <d@drobilla.net>2023-01-11 15:17:44 -0500
commitb779b720c7eeb8244aa347ded76492f7ed956ceb (patch)
treec982aacd8dedbbe31f7bae80b60c4989d8fed839 /src/x11.c
parent916f989661fd53f42740a9469c80f6396993741f (diff)
downloadpugl-b779b720c7eeb8244aa347ded76492f7ed956ceb.tar.gz
pugl-b779b720c7eeb8244aa347ded76492f7ed956ceb.tar.bz2
pugl-b779b720c7eeb8244aa347ded76492f7ed956ceb.zip
Clean up puglRealize() implementations
Diffstat (limited to 'src/x11.c')
-rw-r--r--src/x11.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/x11.c b/src/x11.c
index 54fc6d1..d2a9813 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -619,18 +619,12 @@ puglRealize(PuglView* const view)
}
#endif
- updateSizeHints(view);
-
+ // Set basic window hints and attributes
XClassHint classHint = {world->className, world->className};
XSetClassHint(display, impl->win, &classHint);
-
- if (view->title) {
- puglSetWindowTitle(view, view->title);
- }
-
- if (view->transientParent) {
- puglSetTransientParent(view, view->transientParent);
- }
+ puglSetWindowTitle(view, view->title ? view->title : "");
+ puglSetTransientParent(view, view->transientParent);
+ updateSizeHints(view);
// Set PID and hostname so the window manager can access our process
char hostname[256] = {0};