diff options
author | raveit65 <[email protected]> | 2013-10-02 20:23:11 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2013-11-08 16:44:47 +0100 |
commit | 422504e251442ca9921c4218151cffb6548280e6 (patch) | |
tree | 7c95090ceac4172dc85f50d80eca12a7e7bb1e69 /mate-screenshot/screenshot-utils.c | |
parent | 16b52af7ce208b7bac89ad04ae4ba4cf433103fd (diff) | |
download | mate-utils-422504e251442ca9921c4218151cffb6548280e6.tar.bz2 mate-utils-422504e251442ca9921c4218151cffb6548280e6.tar.xz |
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) |