diff options
author | Elijah Newren <newren gmail com> | 2007-04-16 16:24:28 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2007-04-16 16:24:28 +0000 |
commit | 81b19fbcbeef55072f897863d268d9dec307bc1d (patch) | |
tree | 5f4c7e9d825e11055ee3e612518a90512ed1a95a | |
parent | 86278e2aa2892f7b16de9fa3f4872e492508f7a5 (diff) | |
download | metacity-81b19fbcbeef55072f897863d268d9dec307bc1d.tar.gz |
Prevent metacity from "forgetting" which machine a window is on. #418552
2007-04-16 Elijah Newren <newren gmail com>
Prevent metacity from "forgetting" which machine a window is on.
#418552
* src/window.c (meta_window_new_with_attrs): reorder the property
loading so that we know the wm_client_machine when we load the
name of the window and can modify the window name accordingly.
svn path=/branches/gnome-2-18/; revision=3202
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | src/window.c | 9 |
2 files changed, 14 insertions, 4 deletions
@@ -1,3 +1,12 @@ +2007-04-16 Elijah Newren <newren gmail com> + + Prevent metacity from "forgetting" which machine a window is on. + #418552 + + * src/window.c (meta_window_new_with_attrs): reorder the property + loading so that we know the wm_client_machine when we load the + name of the window and can modify the window name accordingly. + 2007-04-08 Thomas Thurman <thomas@thurman.org.uk> * configure.in: post-release version bump to 2.18.3 diff --git a/src/window.c b/src/window.c index d70dca0c..d80f8ad7 100644 --- a/src/window.c +++ b/src/window.c @@ -555,14 +555,15 @@ meta_window_new_with_attrs (MetaDisplay *display, window->xgroup_leader = None; meta_window_compute_group (window); - /* Fill these in the order we want them to be gotten. - * we want to get window name and class first - * so we can use them in error messages and such. + /* Fill these in the order we want them to be gotten. we want to + * get window name and class first so we can use them in error + * messages and such. However, name is modified depending on + * wm_client_machine, so push it slightly sooner. */ i = 0; + initial_props[i++] = display->atom_wm_client_machine; initial_props[i++] = display->atom_net_wm_name; initial_props[i++] = XA_WM_CLASS; - initial_props[i++] = display->atom_wm_client_machine; initial_props[i++] = display->atom_net_wm_pid; initial_props[i++] = XA_WM_NAME; initial_props[i++] = display->atom_net_wm_icon_name; |