[metacity] unset _NET_SUPPORTING_WM_CHECK when shutting down
- From: Thomas James Alexander Thurman <tthurman src gnome org>
- To: svn-commits-list gnome org
- Subject: [metacity] unset _NET_SUPPORTING_WM_CHECK when shutting down
- Date: Thu, 9 Jul 2009 14:26:31 +0000 (UTC)
commit 40e9f6fa2c68674b2c2c7803c3022d2267387189
Author: Thomas Thurman <tthurman gnome org>
Date: Thu Jul 9 10:26:20 2009 -0400
unset _NET_SUPPORTING_WM_CHECK when shutting down
ChangeLog | 4 ++++
src/core/screen.c | 9 +++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6e9d218..6820988 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-09 Matthias Clasen <mclasen redhat com>
+
+ unset _NET_SUPPORTING_WM_CHECK when shutting down
+
2009-06-08 Tomeu Vizoso <tomeu sugarlabs org>
Add a switch to disable autofullscreen'ing maximized windows without decorations
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]