summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/thumbnail.c
diff options
context:
space:
mode:
authorguillaume <guillaume@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-26 22:14:53 +0000
committerguillaume <guillaume@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-26 22:14:53 +0000
commit501d00fc9a1a633d560581216349a6fc9d29fa77 (patch)
tree4ed8dbe03a70d7af5aede880cd78eb67f1f806f0 /beryl-plugins/src/thumbnail.c
parent752384342eb3629071a6d179a5e716fb98642b91 (diff)
downloadmarex-dev-501d00fc9a1a633d560581216349a6fc9d29fa77.tar.gz
marex-dev-501d00fc9a1a633d560581216349a6fc9d29fa77.tar.bz2
beryl-plugins: update thumbWindowResizeNotify
git-svn-id: file:///beryl/trunk@3233 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/thumbnail.c')
-rw-r--r--beryl-plugins/src/thumbnail.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/beryl-plugins/src/thumbnail.c b/beryl-plugins/src/thumbnail.c
index 9c8f805..e3a94c5 100644
--- a/beryl-plugins/src/thumbnail.c
+++ b/beryl-plugins/src/thumbnail.c
@@ -933,14 +933,16 @@ thumbSetScreenOption (CompScreen *screen,
}
static void
-thumbWindowResizeNotify(CompWindow *w, int dx, int dy, int dwidth, int dheight)
+thumbWindowResizeNotify(CompWindow *w, int dx, int dy, int dwidth, int dheight,
+ Bool preview)
{
THUMB_SCREEN ( w->screen );
- thumbUpdateThumbnail(w->screen);
+ if (!preview)
+ thumbUpdateThumbnail(w->screen);
UNWRAP(ts,w->screen,windowResizeNotify);
- (*w->screen->windowResizeNotify) (w,dx,dy,dwidth,dheight);
+ (*w->screen->windowResizeNotify) (w, dx, dy, dwidth, dheight, preview);
WRAP(ts,w->screen,windowResizeNotify,thumbWindowResizeNotify);
}