force comp effect reset/unclip when switching desks using border menu
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 27 Nov 2013 15:37:51 +0000 (10:37 -0500)
committerMike Blumenkrantz <zmike@samsung.com>
Wed, 27 Nov 2013 15:38:21 +0000 (10:38 -0500)
T478

src/bin/e_int_border_menu.c

index 919a49b..31238f2 100644 (file)
@@ -1003,7 +1003,14 @@ _e_border_menu_cb_sendto(void *data, E_Menu *m, E_Menu_Item *mi __UNUSED__)
    bd = e_object_data_get(E_OBJECT(m));
    if ((bd) && (desk))
      {
-        e_border_zone_set(bd, desk->zone);
+         if (desk != e_desk_current_get(desk->zone))
+           e_border_hide(bd, 2);
+         else
+           {
+              e_comp_win_effect_unclip(bd->cw);
+              e_comp_win_effect_set(bd->cw, NULL);
+              e_border_show(bd);
+           }
         e_border_desk_set(bd, desk);
      }
 }