dnd: Clean up construction
https://bugzilla.gnome.org/show_bug.cgi?id=699975
This commit is contained in:
parent
938b1ff06a
commit
9c839cdc70
@ -43,9 +43,7 @@ let dragMonitors = [];
|
|||||||
|
|
||||||
function _getEventHandlerActor() {
|
function _getEventHandlerActor() {
|
||||||
if (!eventHandlerActor) {
|
if (!eventHandlerActor) {
|
||||||
eventHandlerActor = new Clutter.Rectangle();
|
eventHandlerActor = new Clutter.Rectangle({ width: 0, height: 0 });
|
||||||
eventHandlerActor.width = 0;
|
|
||||||
eventHandlerActor.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.
|
||||||
|
Loading…
Reference in New Issue
Block a user