Skip to content

Commit 6e12222

Browse files
committed
https://github.com/cypherstack/stack_wallet/issues/1211
1 parent b60fd0f commit 6e12222

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/app_config/templates/linux/my_application.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ static void my_application_activate(GApplication* application) {
4343
}
4444
}
4545
#endif
46-
if (use_header_bar) {
46+
const char* gtk_csd_env_var = getenv("GTK_CSD");
47+
gboolean use_gtk_csd = !gtk_csd_env_var || strcmp(gtk_csd_env_var, "0") != 0;
48+
if (use_header_bar && use_gtk_csd) {
4749
GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
4850
gtk_widget_show(GTK_WIDGET(header_bar));
4951
gtk_header_bar_set_title(header_bar, "PlaceHolderName");

0 commit comments

Comments
 (0)