From 26d648604c522d89a4e564214924f786b786e29f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Jan 2023 15:17:06 -0500 Subject: Guard against required hints explicitly being set to PUGL_DONT_CARE --- src/x11.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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) { -- cgit v1.2.1