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

This commit is contained in:
Alexander Shaduri
2022-02-04 12:02:04 +04:00
parent cf93bf008f
commit 0f78b7e91c
+5 -2
View File
@@ -297,8 +297,11 @@ namespace {
bool app_init_and_loop(int& argc, char**& argv)
{
if constexpr(BuildEnv::is_kernel_family_windows()) {
// 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");
}
}
// Set up gettext. This has to be before gtk is initialized.