[mutter] meta_window_is_remote: If WM_CLIENT_MACHINE not set, don't assume remote
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] meta_window_is_remote: If WM_CLIENT_MACHINE not set, don't assume remote
- Date: Mon, 25 Apr 2011 20:42:43 +0000 (UTC)
commit 4ff4ebebb62548823578e32bf0762e9f309aadb7
Author: Colin Walters <walters verbum org>
Date: Wed Apr 13 10:18:49 2011 -0400
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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 964ada8..a48b0c1 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;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]