summaryrefslogtreecommitdiff
path: root/src/core/screen.c
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-02-19 02:07:02 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-02-19 02:07:02 +0200
commitcdc5bf4621ec4ef5931a4c1e8522e6ad62da6a45 (patch)
treecd04f7cc87e1440a5b2d3b71b5ee8a0b1875dd11 /src/core/screen.c
parent4c5809c33b35bfb9c254fe9f8babc4cc0a382fbe (diff)
downloadmetacity-cdc5bf4621ec4ef5931a4c1e8522e6ad62da6a45.tar.gz
prefs: add alt-tab-thumbnails preference
Diffstat (limited to 'src/core/screen.c')
-rw-r--r--src/core/screen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/screen.c b/src/core/screen.c
index 8384dd0d..a3db88c7 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -1294,7 +1294,10 @@ meta_screen_ensure_tab_popup (MetaScreen *screen,
entries[i].key = (MetaTabEntryKey) window->xwindow;
entries[i].title = window->title;
- win_pixbuf = get_window_pixbuf (window, &width, &height);
+ win_pixbuf = NULL;
+ if (meta_prefs_get_alt_tab_thumbnails ())
+ win_pixbuf = get_window_pixbuf (window, &width, &height);
+
if (win_pixbuf == NULL)
entries[i].icon = g_object_ref (window->icon);
else