screenshot: Return a Meta.Rectangle as geometry
Since the geometry is used as a signal parameter, this can't be used when using a GObject based class, so use the Meta boxed type instead of a JS object. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/559
This commit is contained in:
parent
91eb84fa4e
commit
22fe4e92c7
@ -264,10 +264,12 @@ var SelectArea = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_getGeometry() {
|
_getGeometry() {
|
||||||
return { x: Math.min(this._startX, this._lastX),
|
return new Meta.Rectangle({
|
||||||
y: Math.min(this._startY, this._lastY),
|
x: Math.min(this._startX, this._lastX),
|
||||||
width: Math.abs(this._startX - this._lastX) + 1,
|
y: Math.min(this._startY, this._lastY),
|
||||||
height: Math.abs(this._startY - this._lastY) + 1 };
|
width: Math.abs(this._startX - this._lastX) + 1,
|
||||||
|
height: Math.abs(this._startY - this._lastY) + 1
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_onMotionEvent(actor, event) {
|
_onMotionEvent(actor, event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user