From 9c839cdc7000628ecb0e74c1b23dbbb0ddeb919b Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 25 Feb 2013 15:00:28 -0500 Subject: [PATCH] dnd: Clean up construction https://bugzilla.gnome.org/show_bug.cgi?id=699975 --- js/ui/dnd.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/ui/dnd.js b/js/ui/dnd.js index 763bd0494..5b0a33460 100644 --- a/js/ui/dnd.js +++ b/js/ui/dnd.js @@ -43,9 +43,7 @@ let dragMonitors = []; function _getEventHandlerActor() { if (!eventHandlerActor) { - eventHandlerActor = new Clutter.Rectangle(); - eventHandlerActor.width = 0; - eventHandlerActor.height = 0; + eventHandlerActor = new Clutter.Rectangle({ width: 0, height: 0 }); Main.uiGroup.add_actor(eventHandlerActor); // We connect to 'event' rather than 'captured-event' because the capturing phase doesn't happen // when you've grabbed the pointer.