From 256a452fbd7f09625651c71e8b6a01147f4cde3a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 16 Jun 2016 11:34:19 -0400 Subject: [PATCH] Implemented borderless windows on GTK+. --- unix/window.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/unix/window.c b/unix/window.c index 8b953a4a..bd75b9b5 100644 --- a/unix/window.c +++ b/unix/window.c @@ -241,6 +241,16 @@ void uiWindowOnClosing(uiWindow *w, int (*f)(uiWindow *, void *), void *data) w->onClosingData = data; } +int uiWindowBorderless(uiWindow *w) +{ + return gtk_window_get_decorated(w->window) == FALSE; +} + +void uiWindowSetBorderless(uiWindow *w, int borderless) +{ + gtk_window_set_decorated(w->window, borderless == 0); +} + // TODO save and restore expands and aligns void uiWindowSetChild(uiWindow *w, uiControl *child) {