diff options
author | David Robillard <d@drobilla.net> | 2023-01-11 15:17:06 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-11 15:17:44 -0500 |
commit | 26d648604c522d89a4e564214924f786b786e29f (patch) | |
tree | f1242e66bd099510e53d8dfa2851eaac77cc0a88 /src/x11.c | |
parent | b779b720c7eeb8244aa347ded76492f7ed956ceb (diff) | |
download | pugl-26d648604c522d89a4e564214924f786b786e29f.tar.gz pugl-26d648604c522d89a4e564214924f786b786e29f.tar.bz2 pugl-26d648604c522d89a4e564214924f786b786e29f.zip |
Guard against required hints explicitly being set to PUGL_DONT_CARE
Diffstat (limited to 'src/x11.c')
-rw-r--r-- | src/x11.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -547,6 +547,11 @@ puglRealize(PuglView* const view) return st; } + // Ensure hints that will be used are set to sensible values + puglEnsureHint(view, PUGL_IGNORE_KEY_REPEAT, PUGL_FALSE); + puglEnsureHint(view, PUGL_RESIZABLE, PUGL_TRUE); + puglEnsureHint(view, PUGL_VIEW_TYPE, PUGL_VIEW_TYPE_NORMAL); + // Configure the backend to get the visual info impl->screen = screen; if ((st = view->backend->configure(view)) || !impl->vi) { |