diff options
author | Stefano Karapetsas <[email protected]> | 2013-11-08 14:02:07 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-11-08 14:02:07 -0800 |
commit | ec30a112619905aed3e8f66ecef66f8425b5de62 (patch) | |
tree | 8ab7cabe2cd7456dfb6197f8122fc52b46df42b1 /mate-screenshot/screenshot-utils.c | |
parent | 83ae7e3c19d7fe8cb8024d77ac8c5a5dcf3d1b99 (diff) | |
parent | 422504e251442ca9921c4218151cffb6548280e6 (diff) | |
download | mate-utils-ec30a112619905aed3e8f66ecef66f8425b5de62.tar.bz2 mate-utils-ec30a112619905aed3e8f66ecef66f8425b5de62.tar.xz |
Merge pull request #45 from NiceandGently/master
disable masking for area or window screenshots
Diffstat (limited to 'mate-screenshot/screenshot-utils.c')
-rw-r--r-- | mate-screenshot/screenshot-utils.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mate-screenshot/screenshot-utils.c b/mate-screenshot/screenshot-utils.c index b41ae4b8..faed6762 100644 --- a/mate-screenshot/screenshot-utils.c +++ b/mate-screenshot/screenshot-utils.c @@ -670,7 +670,8 @@ GdkPixbuf * screenshot_get_pixbuf (GdkWindow *window, GdkRectangle *rectangle, gboolean include_pointer, - gboolean include_border) + gboolean include_border, + gboolean include_mask) { GdkWindow *root; GdkPixbuf *screenshot; @@ -738,7 +739,11 @@ screenshot_get_pixbuf (GdkWindow *window, x_orig, y_orig, 0, 0, width, height); - mask_monitors (screenshot, root); + /* + * Masking currently only works properly with full-screen shots + */ + if (include_mask) + mask_monitors (screenshot, root); #ifdef HAVE_X11_EXTENSIONS_SHAPE_H if (include_border) |