unset _NET_SUPPORTING_WM_CHECK when shutting down

This commit is contained in:
Thomas Thurman 2009-07-09 10:26:20 -04:00
parent 35afd2a8fb
commit 40e9f6fa2c
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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);