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>
|
2003-11-07 Rob Adams <readams@readams.net>
|
||||||
|
|
||||||
* src/main.c (main): Try harder to find a theme in the event that
|
* 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)
|
window_should_be_showing (MetaWindow *window)
|
||||||
{
|
{
|
||||||
gboolean showing, on_workspace;
|
gboolean showing, on_workspace;
|
||||||
|
gboolean is_desktop_or_dock;
|
||||||
|
|
||||||
meta_verbose ("Should be showing for window %s\n", window->desc);
|
meta_verbose ("Should be showing for window %s\n", window->desc);
|
||||||
|
|
||||||
@ -1185,11 +1186,16 @@ window_should_be_showing (MetaWindow *window)
|
|||||||
showing = FALSE;
|
showing = FALSE;
|
||||||
|
|
||||||
/* 3. See if we're in "show desktop" mode */
|
/* 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 &&
|
if (showing &&
|
||||||
window->screen->showing_desktop &&
|
window->screen->showing_desktop &&
|
||||||
window->type != META_WINDOW_DESKTOP &&
|
!is_desktop_or_dock)
|
||||||
window->type != META_WINDOW_DOCK)
|
|
||||||
{
|
{
|
||||||
meta_verbose ("Window %s is on current workspace, but we're showing the desktop\n",
|
meta_verbose ("Window %s is on current workspace, but we're showing the desktop\n",
|
||||||
window->desc);
|
window->desc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user