[gnome-shell] dnd: Clean up construction
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dnd: Clean up construction
- Date: Thu, 9 May 2013 13:49:40 +0000 (UTC)
commit 9c839cdc7000628ecb0e74c1b23dbbb0ddeb919b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Feb 25 15:00:28 2013 -0500
dnd: Clean up construction
https://bugzilla.gnome.org/show_bug.cgi?id=699975
js/ui/dnd.js | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/dnd.js b/js/ui/dnd.js
index 763bd04..5b0a334 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]