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

Hank Barta hbarta at gmail.com
Thu Nov 28 02:19:48 GMT 2019

Package: gnome-screenshot
Version: 3.30.0-2
Severity: normal
Tags: patch

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

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 at rocinante:~/Downloads/gnome-screenshot/src$ apt-cache policy gnome-
  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 at rocinante:~/Downloads/gnome-screenshot/src$

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

commit e0c4cd438a1e8225499a44dbca4013e3dc92e7d9
Author: Cosimo Cecchi <cosimoc at 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.

-- System Information:
Debian Release: 10.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.67 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gnome-screenshot depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.30.1-2
ii  libc6                                        2.28-10
ii  libcairo2                                    1.16.0-4
ii  libcanberra-gtk3-0                           0.30-7
ii  libcanberra0                                 0.30-7
ii  libgdk-pixbuf2.0-0                           2.38.1+dfsg-1
ii  libglib2.0-0                                 2.58.3-2+deb10u2
ii  libgtk-3-0                                   3.24.5-1
ii  libx11-6                                     2:1.6.7-1
ii  libxext6                                     2:1.3.3-1+b2

gnome-screenshot recommends no packages.

gnome-screenshot suggests no packages.

-- no debconf information
-------------- next part --------------
I do not have a patch. I could not determine how to unselect that option. I did include the git commit ID of the upstream fix.
-------------- next part --------------
I do not have a patch. I could not determine how to unselect that option. I did include the git commit ID of the upstream fix.

More information about the pkg-gnome-maintainers mailing list