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:
parent
2218b79143
commit
17dc2d6151
@ -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
|
||||
|
12
src/window.c
12
src/window.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user