dash: don't react to window drags

Instead, make the actor half-opaque in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=686984
This commit is contained in:
Cosimo Cecchi
2013-02-18 22:34:27 -05:00
parent 07c0105c83
commit cb7778d433
2 changed files with 34 additions and 12 deletions

View File

@ -24,9 +24,6 @@ const DASH_ITEM_HOVER_TIMEOUT = 300;
function getAppFromSource(source) {
if (source instanceof AppDisplay.AppWellIcon) {
return source.app;
} else if (source.metaWindow) {
let tracker = Shell.WindowTracker.get_default();
return tracker.get_window_app(source.metaWindow);
} else {
return null;
}
@ -415,12 +412,6 @@ const Dash = new Lang.Class({
Lang.bind(this, this._onDragEnd));
Main.overview.connect('item-drag-cancelled',
Lang.bind(this, this._onDragCancelled));
Main.overview.connect('window-drag-begin',
Lang.bind(this, this._onDragBegin));
Main.overview.connect('window-drag-cancelled',
Lang.bind(this, this._onDragCancelled));
Main.overview.connect('window-drag-end',
Lang.bind(this, this._onDragEnd));
// Translators: this is the name of the dock/favorites area on
// the left of the overview