show the window if it's a transient of a dock or desktop, since otherwise

2003-11-07  Rob Adams  <readams@readams.net>

	* src/window.c (window_should_be_showing): show the window if it's
	a transient of a dock or desktop, since otherwise such windows are
	invisible in show desktop mode.  Fix for #124648.
This commit is contained in:
Rob Adams 2003-11-08 05:29:23 +00:00 committed by Rob Adams
parent 2218b79143
commit 17dc2d6151
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2003-11-07 Rob Adams <readams@readams.net>
* src/window.c (window_should_be_showing): show the window if it's
a transient of a dock or desktop, since otherwise such windows are
invisible in show desktop mode. Fix for #124648.
2003-11-07 Rob Adams <readams@readams.net>
* src/main.c (main): Try harder to find a theme in the event that

View File

@ -1158,6 +1158,7 @@ static gboolean
window_should_be_showing (MetaWindow *window)
{
gboolean showing, on_workspace;
gboolean is_desktop_or_dock;
meta_verbose ("Should be showing for window %s\n", window->desc);
@ -1185,11 +1186,16 @@ window_should_be_showing (MetaWindow *window)
showing = FALSE;
/* 3. See if we're in "show desktop" mode */
is_desktop_or_dock = FALSE;
is_desktop_or_dock_foreach (window,
&is_desktop_or_dock);
meta_window_foreach_ancestor (window, is_desktop_or_dock_foreach,
&is_desktop_or_dock);
if (showing &&
window->screen->showing_desktop &&
window->type != META_WINDOW_DESKTOP &&
window->type != META_WINDOW_DOCK)
!is_desktop_or_dock)
{
meta_verbose ("Window %s is on current workspace, but we're showing the desktop\n",
window->desc);