diff options
author | ZenWalker <[email protected]> | 2017-08-09 16:20:26 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-11 10:15:29 +0200 |
commit | c0b5081bf32ee22094e15c5d76a8ac8e5806e4a5 (patch) | |
tree | cdce9be05253baaab77744a502d915a21565d69c /mate-screenshot/src/screenshot-utils.c | |
parent | 60695fd1910ec3c785734050882fec5723a9fd9c (diff) | |
download | mate-utils-c0b5081bf32ee22094e15c5d76a8ac8e5806e4a5.tar.bz2 mate-utils-c0b5081bf32ee22094e15c5d76a8ac8e5806e4a5.tar.xz |
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'mate-screenshot/src/screenshot-utils.c')
-rw-r--r-- | mate-screenshot/src/screenshot-utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mate-screenshot/src/screenshot-utils.c b/mate-screenshot/src/screenshot-utils.c index dadd0dcd..bec693fa 100644 --- a/mate-screenshot/src/screenshot-utils.c +++ b/mate-screenshot/src/screenshot-utils.c @@ -699,8 +699,9 @@ mask_monitors (GdkPixbuf *pixbuf, GdkWindow *root_window) rect.x = 0; rect.y = 0; - rect.width = gdk_screen_get_width (screen); - rect.height = gdk_screen_get_height (screen); + + gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, + &rect.width, &rect.height); invisible_region = cairo_region_create_rectangle (&rect); cairo_region_subtract (invisible_region, region_with_monitors); |