summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorMark McLoughlin <mark@skynet.ie>2002-06-20 02:29:19 +0000
committerMark McLoughlin <mmclouglin@src.gnome.org>2002-06-20 02:29:19 +0000
commit854e58fd82a9b2dc6295ccc0bcf6b3cf688cf78d (patch)
tree7c219d155ad457e6eea7b9897e02a5cf6e58e92b /src/window.c
parentfb49dabcc2db1d6a169f0473af918c3ca7bd6bb7 (diff)
downloadmetacity-854e58fd82a9b2dc6295ccc0bcf6b3cf688cf78d.tar.gz
metacity-854e58fd82a9b2dc6295ccc0bcf6b3cf688cf78d.tar.bz2
sticky windows aren't visibile on all screens. Check the workspace is on
2002-06-20 Mark McLoughlin <mark@skynet.ie> * src/window.c: (meta_window_visible_on_workspace): sticky windows aren't visibile on all screens. Check the workspace is on the same screen as the window. * src/workspace.c: (meta_workspace_list_windows): use meta_window_visible_on_workspace here.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 35bbbf6..0a7fbc0 100644
--- a/src/window.c
+++ b/src/window.c
@@ -953,7 +953,7 @@ gboolean
meta_window_visible_on_workspace (MetaWindow *window,
MetaWorkspace *workspace)
{
- return window->on_all_workspaces ||
+ return (window->on_all_workspaces && window->screen == workspace->screen) ||
meta_workspace_contains_window (workspace, window);
}