Shotpad 1.0.1
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.
xwininforeports 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 shotpadAppImage 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 --installIf 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.