screenshot: Include server side decorations (#1194)

This commit is contained in:
José Expósito 2021-08-11 17:51:09 +02:00 committed by GitHub
parent ee44b9ab6c
commit af59aa680b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -10,6 +10,15 @@
<p>A window &amp; compositing manager based on libmutter and designed by elementary for use with Pantheon.</p>
</description>
<releases>
<release version="6.0.1" date="2020-08-10" urgency="medium">
<description>
<p>Improvements:</p>
<ul>
<li>Include window decorations for server-side decorated windows</li>
<li>Updated translations</li>
</ul>
</description>
</release>
<release version="6.0.0" date="2021-07-14" urgency="medium">
<description>
<p>Improvements:</p>

View File

@ -137,7 +137,8 @@ namespace Gala {
window_actor.get_position (out actor_x, out actor_y);
var rect = window.get_frame_rect ();
if (include_frame) {
if ((include_frame && window.is_client_decorated ()) ||
(!include_frame && !window.is_client_decorated ())) {
rect = window.frame_rect_to_client_rect (rect);
}