screenshooter: Choose output to record from based on keyboard focus
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Wed, 18 Dec 2013 17:51:39 +0000 (19:51 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 20 Dec 2013 05:49:18 +0000 (21:49 -0800)
commit41b829c025fb92d601e2a41468a2f281e3c8731e
treef236335fb7e727b1107d00ba6c52d460ec12a630
parentdf42a80ea2ac7ce837d0d058ceb96964ba6e471d
screenshooter: Choose output to record from based on keyboard focus

Record from the output of the surface that has keyboard focus for the
seat used to activate the recorder key binding. If there is no focused
surface, record from the first one.

Also, use the weston_transformed_region() to transform the damage
region of the output into the coordinates expected by read_pixels().

https://bugs.freedesktop.org/show_bug.cgi?id=71401
src/screenshooter.c