#945753 gnome-screenshot: Wrong size image captured for active window, scaling at 200%

Package:
gnome-screenshot
Source:
gnome-screenshot
Description:
screenshot application for GNOME
Submitter:
Hank Barta
Date:
2019-11-28 02:21:05 UTC
Severity:
normal
#945753#5
Date:
2019-11-28 02:19:48 UTC
From:
To:
Dear Maintainer,


   * What led up to the situation?

Capture an image of "Active Window" with Display property scaling set to 200%.
Result is upper left 1/4 of image is captured.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Select area to capture - results as expected.
Select entire screen to capture - results as expected.

   * What was the outcome of this action?

Result is upper left 1/4 of "Active Window" is captured.

   * What outcome did you expect instead?

Complete active window should be captured.

   * Additional information

Other users have confirmed that this is fixed in more recent versions of gnome-
screenshot. I am using 3.30 on Buster.

barta@rocinante:~/Downloads/gnome-screenshot/src$ apt-cache policy gnome-
screenshot
gnome-screenshot:
  Installed: 3.30.0-2
  Candidate: 3.30.0-2
  Version table:
 *** 3.30.0-2 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status
hbarta@rocinante:~/Downloads/gnome-screenshot/src$


At https://gitlab.gnome.org/GNOME/gnome-screenshot/blob/master/src/screenshot-
utils.c
Most recent entry in the git log sounds like the fix for the problem

commit e0c4cd438a1e8225499a44dbca4013e3dc92e7d9
Author: Cosimo Cecchi <cosimoc@gnome.org>
Date:   Wed Jul 24 17:45:35 2019 +0200

    utils: fix X11 fallback code path for HiDPi

    The X11 fallback code path did not correctly account for the
    scale factor, and would lead to screenshots of a quarter size only.