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.
This commit is contained in:
parent
340fbfe943
commit
cdee026095
@ -11,6 +11,7 @@ const Pango = imports.gi.Pango;
|
|||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
|
|
||||||
|
const AppDisplay = imports.ui.appDisplay;
|
||||||
const DND = imports.ui.dnd;
|
const DND = imports.ui.dnd;
|
||||||
const GenericDisplay = imports.ui.genericDisplay;
|
const GenericDisplay = imports.ui.genericDisplay;
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
@ -752,7 +753,7 @@ Workspace.prototype = {
|
|||||||
false, // don't create workspace
|
false, // don't create workspace
|
||||||
time);
|
time);
|
||||||
return true;
|
return true;
|
||||||
} else if (source instanceof GenericDisplay.GenericDisplayItem) {
|
} else if (source instanceof GenericDisplay.GenericDisplayItem || source instanceof AppDisplay.WellDisplayItem) {
|
||||||
this._metaWorkspace.activate(time);
|
this._metaWorkspace.activate(time);
|
||||||
source.launch();
|
source.launch();
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user