summaryrefslogtreecommitdiff
path: root/ui/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/util.c')
-rw-r--r--ui/util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/util.c b/ui/util.c
index 75dd273f72..29a6811321 100644
--- a/ui/util.c
+++ b/ui/util.c
@@ -336,6 +336,17 @@ const gchar *get_conn_cfilter(void) {
return filter_str->str;
}
+gboolean display_is_remote(void)
+{
+ static gboolean remote_display_checked;
+ static gboolean is_remote;
+
+ if (!remote_display_checked) {
+ is_remote = (strlen(get_conn_cfilter()) > 0);
+ }
+ return is_remote;
+}
+
/*
* Editor modelines
*