From 8229194abf82eb1d3b1123f378b72343041fe9e9 Mon Sep 17 00:00:00 2001 From: Nikc Date: Mon, 31 Jan 2022 19:56:56 +0000 Subject: [PATCH] Issue #4107: Removing titlebar/borders from Windows Splash Screen (Backport) --- app/gui/splash.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/gui/splash.c b/app/gui/splash.c index e25c1b0bc6..f257e7b5d0 100644 --- a/app/gui/splash.c +++ b/app/gui/splash.c @@ -142,6 +142,12 @@ splash_create (gboolean be_verbose, "resizable", FALSE, NULL); + /* Don't remove this call, it's necessary to remove decorations on Windows + * (which is the natural state of splash-screens). Looks like the + * GDK_WINDOW_TYPE_HINT_SPLASHSCREEN hint is not used on some platforms. + */ + gtk_window_set_decorated (GTK_WINDOW (splash->window), FALSE); + g_signal_connect_swapped (splash->window, "delete-event", G_CALLBACK (exit), GINT_TO_POINTER (0));