From cdee026095b163e45fc6ebf03516116140feef20 Mon Sep 17 00:00:00 2001 From: Marina Zhurakhinskaya Date: Mon, 29 Jun 2009 12:28:21 -0400 Subject: [PATCH] Make workspaces accept a drop of AppDisplay.WellDisplayItem AppDispplay.WellDisplayItem needed to be added along with the GenericDisplay.GenericDisplayItem as a type of a drop object that workspaces accept. --- js/ui/workspaces.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/workspaces.js b/js/ui/workspaces.js index 16769ae85..082545ab4 100644 --- a/js/ui/workspaces.js +++ b/js/ui/workspaces.js @@ -11,6 +11,7 @@ const Pango = imports.gi.Pango; const Shell = imports.gi.Shell; const Signals = imports.signals; +const AppDisplay = imports.ui.appDisplay; const DND = imports.ui.dnd; const GenericDisplay = imports.ui.genericDisplay; const Main = imports.ui.main; @@ -752,7 +753,7 @@ Workspace.prototype = { false, // don't create workspace time); return true; - } else if (source instanceof GenericDisplay.GenericDisplayItem) { + } else if (source instanceof GenericDisplay.GenericDisplayItem || source instanceof AppDisplay.WellDisplayItem) { this._metaWorkspace.activate(time); source.launch(); return true;