summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/wncklet/window-list.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index 85670666..40c5f07b 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -293,6 +293,11 @@ static gboolean applet_enter_notify_event (WnckTasklist *tl, GList *wnck_windows
if (wnck_window == NULL)
return FALSE;
+ /* Do not show preview if window is not visible nor in current workspace */
+ if (!wnck_window_is_visible_on_workspace (wnck_window,
+ wnck_screen_get_active_workspace (wnck_screen_get_default ())))
+ return FALSE;
+
thumbnail = preview_window_thumbnail (wnck_window, tasklist);
if (thumbnail == NULL)