diff options
Diffstat (limited to 'src/x11.c')
-rw-r--r-- | src/x11.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2013,6 +2013,10 @@ puglSetSizeHint(PuglView* const view, const PuglSpan width, const PuglSpan height) { + if ((unsigned)hint >= PUGL_NUM_SIZE_HINTS) { + return PUGL_BAD_PARAMETER; + } + view->sizeHints[hint].width = width; view->sizeHints[hint].height = height; return updateSizeHints(view); |