mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
Hide the overlay window (meta_compositor_unmanage_screen): Release the
2008-04-07 iain <iain@gnome.org> * src/core/compositor.c (hide_overlay_window): Hide the overlay window (meta_compositor_unmanage_screen): Release the compositor overlay. (#526770) svn path=/trunk/; revision=3678
This commit is contained in:
parent
48261330de
commit
c17d58237e
@ -1,3 +1,9 @@
|
||||
2008-04-07 iain <iain@gnome.org>
|
||||
|
||||
* src/core/compositor.c (hide_overlay_window): Hide the overlay window
|
||||
(meta_compositor_unmanage_screen): Release the compositor overlay.
|
||||
(#526770)
|
||||
|
||||
2008-04-07 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* src/core/session.c: (save_state),
|
||||
|
@ -2407,11 +2407,11 @@ show_overlay_window (MetaScreen *screen,
|
||||
#endif
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
hide_overlay_window (MetaScreen *screen,
|
||||
Window cow)
|
||||
{
|
||||
#ifdef HAVE_COW
|
||||
MetaDisplay *display = screen->display;
|
||||
XserverRegion region;
|
||||
|
||||
@ -2420,8 +2420,8 @@ hide_overlay_window (MetaScreen *screen,
|
||||
cow, ShapeBounding,
|
||||
0, 0, region);
|
||||
XFixesDestroyRegion (display->xdisplay, region);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static Window
|
||||
get_output_window (MetaScreen *screen)
|
||||
@ -2544,6 +2544,8 @@ meta_compositor_unmanage_screen (MetaCompositor *compositor,
|
||||
|
||||
info = screen->compositor_data;
|
||||
|
||||
hide_overlay_window (screen, info->output);
|
||||
|
||||
/* Destroy the windows */
|
||||
for (index = info->windows; index; index = index->next)
|
||||
{
|
||||
@ -2571,6 +2573,10 @@ meta_compositor_unmanage_screen (MetaCompositor *compositor,
|
||||
CompositeRedirectManual);
|
||||
meta_screen_unset_cm_selection (screen);
|
||||
|
||||
#ifdef HAVE_COW
|
||||
XCompositeReleaseOverlayWindow (display->xdisplay, info->output);
|
||||
#endif
|
||||
|
||||
g_free (info);
|
||||
screen->compositor_data = NULL;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user