summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2009-07-09 10:26:20 -0400
committerThomas Thurman <tthurman@gnome.org>2009-07-09 10:26:20 -0400
commit40e9f6fa2c68674b2c2c7803c3022d2267387189 (patch)
tree4ae913ba910863a8d9b4c9c796c76384900d2c6f /src
parent35afd2a8fbc4b9a2bd8fc7095d81484f06127be7 (diff)
downloadmetacity-40e9f6fa2c68674b2c2c7803c3022d2267387189.tar.gz
metacity-40e9f6fa2c68674b2c2c7803c3022d2267387189.tar.bz2
unset _NET_SUPPORTING_WM_CHECK when shutting down
Diffstat (limited to 'src')
-rw-r--r--src/core/screen.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/screen.c b/src/core/screen.c
index e82dd93..e2e3f56 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -86,6 +86,13 @@ set_wm_check_hint (MetaScreen *screen)
return Success;
}
+static void
+unset_wm_check_hint (MetaScreen *screen)
+{
+ XDeleteProperty (screen->display->xdisplay, screen->xroot,
+ screen->display->atom__NET_SUPPORTING_WM_CHECK);
+}
+
static int
set_supported_hint (MetaScreen *screen)
{
@@ -661,6 +668,8 @@ meta_screen_free (MetaScreen *screen,
meta_warning (_("Could not release screen %d on display \"%s\"\n"),
screen->number, screen->display->name);
+ unset_wm_check_hint (screen);
+
XDestroyWindow (screen->display->xdisplay,
screen->wm_sn_selection_window);