Skip to content

Shotpad 1.0.1

Choose a tag to compare

@TuranIsmayilov TuranIsmayilov released this 04 Aug 07:48
· 15 commits to main since this release

Fixes screen capture on X11 when the desktop font size has been raised.

Both bugs came from the same place: X11 derives a fractional
devicePixelRatio from Xft.dpi, so simply increasing the font size — with
display scaling left at 100% — was enough to trigger them. Wayland was never
affected, since it captures through the XDG portal instead.

Fixed

  • The screenshot was painted shrunk into a corner. QScreen.grabWindow()
    returns device pixels but tags the pixmap with the screen's ratio, and the
    canvas was measured in device pixels — so the whole desktop landed scaled
    down in the top-left, and every crop afterwards read from the wrong
    coordinates.
  • Window highlights were offset and too large. xwininfo reports geometry
    in native pixels while the selection overlay works in Qt's logical
    coordinates; the two were compared directly, so clicking a window captured
    part of it plus a strip of desktop.
  • The virtual-desktop canvas also lost a pixel off its width and height at a
    fractional ratio (1919×1199 for a 1920×1200 screen).

Updating

pipx upgrade shotpad

AppImage users: download below, then re-run --install so the menu entry
points at the new file.

chmod +x Shotpad-1.0.1-x86_64.AppImage
./Shotpad-1.0.1-x86_64.AppImage --install

If you are on 1.0.0 installed with pipx, note that pipx upgrade was a
no-op while the version number was unchanged — this release is the first that
it will actually pick up.