diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libui_sdl/libui/unix/window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libui_sdl/libui/unix/window.c b/src/libui_sdl/libui/unix/window.c index 8eb50b4..7da1134 100644 --- a/src/libui_sdl/libui/unix/window.c +++ b/src/libui_sdl/libui/unix/window.c @@ -437,6 +437,8 @@ uiWindow *uiNewWindow(const char *title, int width, int height, int maximized, i if (maximized) gtk_window_maximize(w->window); + else + gtk_window_set_position(w->window, GTK_WIN_POS_CENTER); return w; } |