Commit 17dc2d61 authored by Rob Adams's avatar Rob Adams Committed by Rob Adams

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.
parent 2218b791
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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment