workspace: Minor clarification

Code and comment were based on the old get_input_rect() and get_outer_rect()
method names that were changed to the more appropriate get_buffer_rect() and
get_frame_rect() a long time ago.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/713
This commit is contained in:
Florian Müllner 2018-02-23 22:48:50 +01:00 committed by Georges Basile Stavracas Neto
parent 60e386048b
commit ba6dbb228d

View File

@ -57,17 +57,16 @@ class WindowCloneLayout extends Clutter.LayoutManager {
// has an extra set of "padding" around it that we need to trim // has an extra set of "padding" around it that we need to trim
// down. // down.
// The outer rect (from which we compute the bounding box) // The bounding box is based on the (visible) frame rect, while
// paradoxically is the smaller rectangle, containing the positions // the buffer rect contains everything, including the invisible
// of the visible frame. The input rect contains everything, // border padding.
// including the invisible border padding. let bufferRect = window.get_buffer_rect();
let inputRect = window.get_buffer_rect();
let box = new Clutter.ActorBox(); let box = new Clutter.ActorBox();
box.set_origin(inputRect.x - this._boundingBox.x, box.set_origin(bufferRect.x - this._boundingBox.x,
inputRect.y - this._boundingBox.y); bufferRect.y - this._boundingBox.y);
box.set_size(inputRect.width, inputRect.height); box.set_size(bufferRect.width, bufferRect.height);
return box; return box;
} }