aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11.c
diff options
context:
space:
mode:
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) {