Remove simple uses of ClutterRectangle
https://bugzilla.gnome.org/show_bug.cgi?id=699975
This commit is contained in:
parent
9c839cdc70
commit
db89648f62
@ -43,7 +43,7 @@ let dragMonitors = [];
|
|||||||
|
|
||||||
function _getEventHandlerActor() {
|
function _getEventHandlerActor() {
|
||||||
if (!eventHandlerActor) {
|
if (!eventHandlerActor) {
|
||||||
eventHandlerActor = new Clutter.Rectangle({ width: 0, height: 0 });
|
eventHandlerActor = new Clutter.Actor({ width: 0, height: 0 });
|
||||||
Main.uiGroup.add_actor(eventHandlerActor);
|
Main.uiGroup.add_actor(eventHandlerActor);
|
||||||
// We connect to 'event' rather than 'captured-event' because the capturing phase doesn't happen
|
// We connect to 'event' rather than 'captured-event' because the capturing phase doesn't happen
|
||||||
// when you've grabbed the pointer.
|
// when you've grabbed the pointer.
|
||||||
|
@ -1136,11 +1136,11 @@ const HotCorner = new Lang.Class({
|
|||||||
height: 3,
|
height: 3,
|
||||||
reactive: true });
|
reactive: true });
|
||||||
|
|
||||||
this._corner = new Clutter.Rectangle({ name: 'hot-corner',
|
this._corner = new Clutter.Actor({ name: 'hot-corner',
|
||||||
width: 1,
|
width: 1,
|
||||||
height: 1,
|
height: 1,
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
reactive: true });
|
reactive: true });
|
||||||
this._corner._delegate = this;
|
this._corner._delegate = this;
|
||||||
|
|
||||||
this.actor.add_child(this._corner);
|
this.actor.add_child(this._corner);
|
||||||
|
@ -147,8 +147,8 @@ const Overview = new Lang.Class({
|
|||||||
// During transitions, we raise this to the top to avoid having the overview
|
// During transitions, we raise this to the top to avoid having the overview
|
||||||
// area be reactive; it causes too many issues such as double clicks on
|
// area be reactive; it causes too many issues such as double clicks on
|
||||||
// Dash elements, or mouseover handlers in the workspaces.
|
// Dash elements, or mouseover handlers in the workspaces.
|
||||||
this._coverPane = new Clutter.Rectangle({ opacity: 0,
|
this._coverPane = new Clutter.Actor({ opacity: 0,
|
||||||
reactive: true });
|
reactive: true });
|
||||||
this._overview.add_actor(this._coverPane);
|
this._overview.add_actor(this._coverPane);
|
||||||
this._coverPane.connect('event', Lang.bind(this, function (actor, event) { return true; }));
|
this._coverPane.connect('event', Lang.bind(this, function (actor, event) { return true; }));
|
||||||
|
|
||||||
|
@ -936,7 +936,7 @@ const Workspace = new Lang.Class({
|
|||||||
this.actor.add_style_class_name('external-monitor');
|
this.actor.add_style_class_name('external-monitor');
|
||||||
this.actor.set_size(0, 0);
|
this.actor.set_size(0, 0);
|
||||||
|
|
||||||
this._dropRect = new Clutter.Rectangle({ opacity: 0 });
|
this._dropRect = new Clutter.Actor({ opacity: 0 });
|
||||||
this._dropRect._delegate = this;
|
this._dropRect._delegate = this;
|
||||||
|
|
||||||
this.actor.add_actor(this._dropRect);
|
this.actor.add_actor(this._dropRect);
|
||||||
|
@ -16,7 +16,7 @@ const XdndHandler = new Lang.Class({
|
|||||||
this._cursorWindowClone = null;
|
this._cursorWindowClone = null;
|
||||||
|
|
||||||
// Used as a drag actor in case we don't have a cursor window clone
|
// Used as a drag actor in case we don't have a cursor window clone
|
||||||
this._dummy = new Clutter.Rectangle({ width: 1, height: 1, opacity: 0 });
|
this._dummy = new Clutter.Actor({ width: 1, height: 1, opacity: 0 });
|
||||||
Main.uiGroup.add_actor(this._dummy);
|
Main.uiGroup.add_actor(this._dummy);
|
||||||
Shell.util_set_hidden_from_pick(this._dummy, true);
|
Shell.util_set_hidden_from_pick(this._dummy, true);
|
||||||
this._dummy.hide();
|
this._dummy.hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user