Windows: Set GTK_CSD=0 only if no GTK_CSD is set.

Signed-off-by: Alexander Shaduri <ashaduri@gmail.com>
This commit is contained in:
Alexander Shaduri
2022-02-04 12:01:55 +04:00
parent bc321ec7eb
commit 61d84eebbe
+5 -2
View File
@@ -342,8 +342,11 @@ bool app_init_and_loop(int& argc, char**& argv)
// Glib::thread_init();
#ifdef _WIN32
// Disable client-side decorations (enable native windows decorations) under Windows.
hz::env_set_value("GTK_CSD", "0");
std::string csd_value;
if (!hz::env_get_value("GTK_CSD", csd_value)) { // if not set
// Disable client-side decorations (enable native windows decorations) under Windows.
hz::env_set_value("GTK_CSD", "0");
}
#endif
// Glib needs the C locale set to system locale for command line args.