screenshot: fix off-by-one selection size
Selecting the whole screen made a (scr_w-1,scr_h-1) sized screenshot. https://bugzilla.gnome.org/show_bug.cgi?id=746223
This commit is contained in:
parent
fa4f6c4561
commit
6380526c12
@ -283,8 +283,8 @@ const SelectArea = new Lang.Class({
|
|||||||
_getGeometry: function() {
|
_getGeometry: function() {
|
||||||
return { x: Math.min(this._startX, this._lastX),
|
return { x: Math.min(this._startX, this._lastX),
|
||||||
y: Math.min(this._startY, this._lastY),
|
y: Math.min(this._startY, this._lastY),
|
||||||
width: Math.abs(this._startX - this._lastX),
|
width: Math.abs(this._startX - this._lastX) + 1,
|
||||||
height: Math.abs(this._startY - this._lastY) };
|
height: Math.abs(this._startY - this._lastY) + 1 };
|
||||||
},
|
},
|
||||||
|
|
||||||
_onMotionEvent: function(actor, event) {
|
_onMotionEvent: function(actor, event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user