diff options
author | StapleButter <thetotalworm@gmail.com> | 2018-12-30 01:17:50 +0100 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2018-12-30 01:17:50 +0100 |
commit | fc3952c9812095eb25b5061a0ca3a9a559f2e0ed (patch) | |
tree | eda8fb9b1fea0d9c14a805084fe0263f8b18dc48 /src/libui_sdl/libui/unix/window.c | |
parent | f9e143fc690bb3a179f3fb23801fd823b04e7592 (diff) |
libui/gtk: center windows
Diffstat (limited to 'src/libui_sdl/libui/unix/window.c')
-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; } |