From 161e4c19862be0ea6572f7701d37acc1c16b8147 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 20 Feb 2019 23:08:30 +0100 Subject: Add non-CSD alternative for more windows --- main/src/ui/util/helper.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui/util') diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala index 5feda242..de05d753 100644 --- a/main/src/ui/util/helper.vala +++ b/main/src/ui/util/helper.vala @@ -265,7 +265,7 @@ public int get_only_emoji_count(string markup_text) { } public bool use_csd() { - return Environment.get_variable("GTK_CSD") != "0"; + return (GLib.Application.get_default() as Application).use_csd(); } } -- cgit v1.2.3-70-g09d2