After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770127 - clutter/stage: Offset framebuffer capture origin by view layout
clutter/stage: Offset framebuffer capture origin by view layout
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: wayland
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2016-08-19 04:17 UTC by Jonas Ådahl
Modified: 2016-09-06 07:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
clutter/stage: Offset framebuffer capture origin by view layout (1.62 KB, patch)
2016-08-19 04:17 UTC, Jonas Ådahl
committed Details | Review

Description Jonas Ådahl 2016-08-19 04:17:20 UTC
This fixes screen capture (screenshot/screen recording) when for views other
than ones with the origin (0,0) when MUTTER_STAGE_VIEWS=1.
Comment 1 Jonas Ådahl 2016-08-19 04:17:24 UTC
Created attachment 333602 [details] [review]
clutter/stage: Offset framebuffer capture origin by view layout

The rectangle passed to capture_view() is in stage coordinate space;
thus, to translate to framebuffer coordinate space, the origin need to
be translated by the view layout position.

This fixes capturing views not at position (0, 0).
Comment 2 Rui Matos 2016-08-19 14:04:06 UTC
Review of attachment 333602 [details] [review]:

right
Comment 3 Jonas Ådahl 2016-09-06 07:00:44 UTC
Attachment 333602 [details] pushed as f36fa53 - clutter/stage: Offset framebuffer capture origin by view layout