aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/libui/unix/window.c
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-12-30 01:17:50 +0100
committerStapleButter <thetotalworm@gmail.com>2018-12-30 01:17:50 +0100
commitfc3952c9812095eb25b5061a0ca3a9a559f2e0ed (patch)
treeeda8fb9b1fea0d9c14a805084fe0263f8b18dc48 /src/libui_sdl/libui/unix/window.c
parentf9e143fc690bb3a179f3fb23801fd823b04e7592 (diff)
libui/gtk: center windows
Diffstat (limited to 'src/libui_sdl/libui/unix/window.c')
-rw-r--r--src/libui_sdl/libui/unix/window.c2
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;
}