Extend (+) button sensitivity to corner of screen, for Fittsability
https://bugzilla.gnome.org/show_bug.cgi?id=591984
This commit is contained in:
parent
678a88dbdb
commit
a0df412deb
@ -454,14 +454,20 @@ function AddWorkspaceButton(buttonSize, buttonX, buttonY, acceptDropCallback) {
|
|||||||
|
|
||||||
AddWorkspaceButton.prototype = {
|
AddWorkspaceButton.prototype = {
|
||||||
_init: function(buttonSize, buttonX, buttonY, acceptDropCallback) {
|
_init: function(buttonSize, buttonX, buttonY, acceptDropCallback) {
|
||||||
this.actor = new Clutter.Texture({ x: buttonX,
|
this.actor = new Clutter.Group({ x: buttonX,
|
||||||
y: buttonY,
|
y: buttonY,
|
||||||
width: buttonSize,
|
width: global.screen_width - buttonX,
|
||||||
height: buttonSize,
|
height: global.screen_height - buttonY,
|
||||||
reactive: true });
|
reactive: true });
|
||||||
this._acceptDropCallback = acceptDropCallback;
|
|
||||||
this.actor._delegate = this;
|
this.actor._delegate = this;
|
||||||
this.actor.set_from_file(global.imagedir + 'add-workspace.svg');
|
this._acceptDropCallback = acceptDropCallback;
|
||||||
|
|
||||||
|
let plus = new Clutter.Texture({ x: 0,
|
||||||
|
y: 0,
|
||||||
|
width: buttonSize,
|
||||||
|
height: buttonSize });
|
||||||
|
plus.set_from_file(global.imagedir + 'add-workspace.svg');
|
||||||
|
this.actor.add_actor(plus);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Draggable target interface
|
// Draggable target interface
|
||||||
|
Loading…
Reference in New Issue
Block a user