re-work X11 capturing from a window
authorTony Cook <tony@develop-help.com>
Thu, 5 Dec 2019 10:22:32 +0000 (10:22 +0000)
committerTony Cook <tony@develop-help.com>
Thu, 5 Dec 2019 10:22:32 +0000 (10:22 +0000)
commitd3f89dd307ebb1553535a4a0e9b165464fce4a1b
treeacd680c09868b3592e241d83e88f04c98061cadc
parent9d7d06907013aab4167ccf171f78eb02f845138e
re-work X11 capturing from a window

Previously this would use XGetImage() on the window itself, but
this returns a completely black image in some cases on more modern
X11 servers.

Fetching a window now fetches from the root window instead, adjusting
co-ordinates to match.
Screenshot.pm
Screenshot.xs
imss.h
scx11.c