From 4ff4ebebb62548823578e32bf0762e9f309aadb7 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 13 Apr 2011 10:18:49 -0400 Subject: [PATCH] meta_window_is_remote: If WM_CLIENT_MACHINE not set, don't assume remote Apparently the "fox" toolkit doesn't set WM_CLIENT_MACHINE; while we could do gymnastics to attempt to figure this out (talk to the X server?), better to just default to FALSE. https://bugzilla.gnome.org/show_bug.cgi?id=647662 --- src/core/window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/window.c b/src/core/window.c index 964ada828..a48b0c15f 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -10094,7 +10094,9 @@ meta_window_is_remote (MetaWindow *window) { g_return_val_if_fail (META_IS_WINDOW (window), FALSE); - return g_strcmp0 (window->wm_client_machine, window->display->hostname) != 0; + if (window->wm_client_machine != NULL) + return g_strcmp0 (window->wm_client_machine, window->display->hostname) != 0; + return FALSE; } /**