Skip to content

0.9.1

Choose a tag to compare

@sheehanmunim sheehanmunim released this 30 Oct 06:50

Fixes

  • Linux: screenshot coordinates now match clicks at fractional scale (#41). xcap divides Linux monitor geometry by a scale factor (Xft.dpi / 96 on X11, the physical-to-logical ratio on Wayland), and GNOME runs Xwayland at yet another size, while click, hover and drag go to XTEST in X screen pixels. At 150% a point taken from a screenshot landed two thirds of the way to its target. list_displays, the screenshot mapping and zoom now use the RandR monitor geometry, the same space input uses. Thanks @selimsandal for the detailed report.
  • macOS: a failed screenshot says why instead of always blaming the Screen Recording permission.

Tested live

  • Windows 11: Calculator by element clicks, run_steps, screenshot, list_displays, zoom.
  • macOS (universal, Developer ID signed): Calculator by element clicks, run_steps, screenshot.
  • Linux (Xvfb + bspwm, X11): Calculator by element clicks, run_steps, screenshot; and with Xft.dpi: 144 (xcap's 1.5×), image points mapped back through the screenshot land exactly where they were seen (0.9.0 landed at two thirds), and zoom returns the requested region.