diff options
author | David Robillard <d@drobilla.net> | 2023-01-11 15:07:23 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-11 15:17:44 -0500 |
commit | b779b720c7eeb8244aa347ded76492f7ed956ceb (patch) | |
tree | c982aacd8dedbbe31f7bae80b60c4989d8fed839 /src/win.c | |
parent | 916f989661fd53f42740a9469c80f6396993741f (diff) | |
download | pugl-b779b720c7eeb8244aa347ded76492f7ed956ceb.tar.gz pugl-b779b720c7eeb8244aa347ded76492f7ed956ceb.tar.bz2 pugl-b779b720c7eeb8244aa347ded76492f7ed956ceb.zip |
Clean up puglRealize() implementations
Diffstat (limited to 'src/win.c')
-rw-r--r-- | src/win.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -279,13 +279,9 @@ puglRealize(PuglView* view) return st; } - if (view->title) { - puglSetWindowTitle(view, view->title); - } - - if (view->transientParent) { - puglSetTransientParent(view, view->transientParent); - } + // Set basic window hints and attributes + puglSetWindowTitle(view, view->title ? view->title : ""); + puglSetTransientParent(view, view->transientParent); view->impl->scaleFactor = puglWinGetViewScaleFactor(view); view->impl->cursor = LoadCursor(NULL, IDC_ARROW); |