aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-11 15:17:06 -0500
committerDavid Robillard <d@drobilla.net>2023-01-11 15:17:44 -0500
commit26d648604c522d89a4e564214924f786b786e29f (patch)
treef1242e66bd099510e53d8dfa2851eaac77cc0a88 /src/x11.c
parentb779b720c7eeb8244aa347ded76492f7ed956ceb (diff)
downloadpugl-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/x11.c b/src/x11.c
index d2a9813..2511632 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -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) {