mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 07:05:30 +03:00
screenshot: Include server side decorations (#1194)
This commit is contained in:
parent
ee44b9ab6c
commit
af59aa680b
@ -10,6 +10,15 @@
|
||||
<p>A window & 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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user