dnd: Clean up construction

https://bugzilla.gnome.org/show_bug.cgi?id=699975
This commit is contained in:
Jasper St. Pierre 2013-02-25 15:00:28 -05:00
parent 938b1ff06a
commit 9c839cdc70

View File

@ -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.