summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2005-02-07 04:37:35 +0000
committerElijah Newren <newren@src.gnome.org>2005-02-07 04:37:35 +0000
commit0aa903f0d4694ae2627420da5f6824231d6745c0 (patch)
treef0c6fe46b48efc703378fefa776a39841b09f263 /src
parenta0b192aa5e2c24627e05d7a7c1d1826e3d011d67 (diff)
downloadmetacity-0aa903f0d4694ae2627420da5f6824231d6745c0.tar.gz
Set a _METACITY_VERSION property (a utf8 string) on the WM check window.
2005-02-06 Elijah Newren <newren@gmail.com> Set a _METACITY_VERSION property (a utf8 string) on the WM check window. #165350. * src/display.h: (struct MetaDisplay): add a atom_metacity_version field * src/display.c: (meta_display_open): initialize the _METACITY_VERSION property on the WM check window to the current version of Metacity.
Diffstat (limited to 'src')
-rw-r--r--src/display.c9
-rw-r--r--src/display.h1
2 files changed, 9 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c
index 444261d4..f72bd599 100644
--- a/src/display.c
+++ b/src/display.c
@@ -295,7 +295,8 @@ meta_display_open (const char *name)
"_NET_RESTACK_WINDOW",
"_NET_MOVERESIZE_WINDOW",
"_NET_DESKTOP_GEOMETRY",
- "_NET_DESKTOP_VIEWPORT"
+ "_NET_DESKTOP_VIEWPORT",
+ "_METACITY_VERSION"
};
Atom atoms[G_N_ELEMENTS(atom_names)];
@@ -449,6 +450,7 @@ meta_display_open (const char *name)
display->atom_net_moveresize_window = atoms[88];
display->atom_net_desktop_geometry = atoms[89];
display->atom_net_desktop_viewport = atoms[90];
+ display->atom_metacity_version = atoms[91];
display->prop_hooks = NULL;
meta_display_init_window_prop_hooks (display);
@@ -622,6 +624,11 @@ meta_display_open (const char *name)
display->atom_net_wm_name,
"Metacity");
+ set_utf8_string_hint (display,
+ display->leader_window,
+ display->atom_metacity_version,
+ VERSION);
+
data[0] = display->leader_window;
XChangeProperty (display->xdisplay,
display->leader_window,
diff --git a/src/display.h b/src/display.h
index 6fd41c58..07070342 100644
--- a/src/display.h
+++ b/src/display.h
@@ -182,6 +182,7 @@ struct _MetaDisplay
Atom atom_net_moveresize_window;
Atom atom_net_desktop_geometry;
Atom atom_net_desktop_viewport;
+ Atom atom_metacity_version;
/* This is the actual window from focus events,
* not the one we last set