[gnome-shell] dash: Don't allow to remove running apps from favorites



commit 4ac352637c1a4e17eccf236e91c2a414a0c238bc
Author: Florian MÃllner <fmuellner gnome org>
Date:   Thu Nov 24 21:44:49 2011 +0100

    dash: Don't allow to remove running apps from favorites
    
    Running apps are always kept in the dash, so removing them from
    favorites just moves them to the end of the favorites list. This
    behavior is not immediately obvious, so only show the remove target
    when dragging a favorites application that is not currently running.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644853

 js/ui/dash.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index af56a0d..a163bed 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -387,6 +387,7 @@ const Dash = new Lang.Class({
         let srcIsFavorite = (id in favorites);
 
         if (srcIsFavorite &&
+            app.get_state() != Shell.AppState.RUNNING &&
             dragEvent.source.actor &&
             this.actor.contains (dragEvent.source.actor) &&
             this._favRemoveTarget == null) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]