diff options
Diffstat (limited to 'mate-window-picker-applet')
-rw-r--r-- | mate-window-picker-applet/task-item.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mate-window-picker-applet/task-item.c b/mate-window-picker-applet/task-item.c index 2096aa4..e9d0085 100644 --- a/mate-window-picker-applet/task-item.c +++ b/mate-window-picker-applet/task-item.c @@ -178,13 +178,16 @@ task_item_set_visibility (TaskItem *item) if (!wnck_window_is_skip_tasklist (window)) { - if (wnck_workspace_is_virtual (workspace)) + if (workspace != NULL) { - show_window = wnck_window_is_in_viewport (window, workspace); - } - else - { - show_window = wnck_window_is_on_workspace (window, workspace); + if (wnck_workspace_is_virtual (workspace)) + { + show_window = wnck_window_is_in_viewport (window, workspace); + } + else + { + show_window = wnck_window_is_on_workspace (window, workspace); + } } show_window = show_window || show_all; } |