mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-26 05:45:35 +00:00
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:
+5
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user