do not refill all tasks bars when a sticky window changes desks
authorMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 12 Nov 2015 22:34:42 +0000 (17:34 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 12 Nov 2015 22:34:42 +0000 (17:34 -0500)
src/modules/tasks/e_mod_main.c

index 59c4ba7..045f968 100644 (file)
@@ -82,7 +82,7 @@ static Eina_Bool    _tasks_cb_event_client_uniconify(void *data, int type, void
 static Eina_Bool    _tasks_cb_event_client_icon_change(void *data, int type, void *event);
 static Eina_Bool    _tasks_cb_event_client_title_change(void *data, int type, void *event);
 static Eina_Bool    _tasks_cb_event_client_zone_set(void *data, int type, void *event);
-static Eina_Bool    _tasks_cb_event_client_desk_set(void *data, int type, void *event);
+static Eina_Bool    _tasks_cb_event_client_desk_set(void *data, int type, E_Event_Client *ev);
 static Eina_Bool    _tasks_cb_window_focus_in(void *data, int type, void *event);
 static Eina_Bool    _tasks_cb_window_focus_out(void *data, int type, void *event);
 static Eina_Bool    _tasks_cb_event_desk_show(void *data, int type, void *event);
@@ -967,9 +967,10 @@ _tasks_cb_event_client_zone_set(void *data EINA_UNUSED, int type EINA_UNUSED, vo
 }
 
 static Eina_Bool
-_tasks_cb_event_client_desk_set(void *data EINA_UNUSED, int type EINA_UNUSED, void *event EINA_UNUSED)
+_tasks_cb_event_client_desk_set(void *data EINA_UNUSED, int type EINA_UNUSED, E_Event_Client *ev)
 {
-   _tasks_refill_all();
+   if (!ev->ec->sticky)
+     _tasks_refill_all();
    return EINA_TRUE;
 }