Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.c 


Log Message:
- don't hide sticky window on set desktop.
- (un)stick children along with its parent.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.517
retrieving revision 1.518
diff -u -3 -r1.517 -r1.518
--- e_border.c  18 Jul 2006 18:33:13 -0000      1.517
+++ e_border.c  20 Jul 2006 12:02:30 -0000      1.518
@@ -638,7 +638,7 @@
    e_object_ref(E_OBJECT(desk));
    ecore_event_add(E_EVENT_BORDER_DESK_SET, ev, 
_e_border_event_border_desk_set_free, NULL);
 
-   if (bd->desk->visible)
+   if ((bd->desk->visible) || (bd->sticky))
      e_border_show(bd);
    else
      e_border_hide(bd, 1);
@@ -2093,6 +2093,20 @@
    e_hints_window_sticky_set(bd, 1);
    e_border_show(bd);
 
+   if (e_config->transient.desktop)
+     {
+       Evas_List *l;
+       for (l = bd->transients; l; l = l->next)
+         {
+            E_Border *child;
+
+            child = l->data;
+            child->sticky = 1;
+            e_hints_window_sticky_set(child, 1);
+            e_border_show(child);
+         }
+     }
+
    ev = E_NEW(E_Event_Border_Stick, 1);
    ev->border = bd;
    e_object_ref(E_OBJECT(bd));
@@ -2112,6 +2126,19 @@
 //   printf("UNSTICK!\n");
    bd->sticky = 0;
    e_hints_window_sticky_set(bd, 0);
+
+   if (e_config->transient.desktop)
+     {
+       Evas_List *l;
+       for (l = bd->transients; l; l = l->next)
+         {
+            E_Border *child;
+
+            child = l->data;
+            child->sticky = 0;
+            e_hints_window_sticky_set(child, 0);
+         }
+     }
 
    ev = E_NEW(E_Event_Border_Unstick, 1);
    ev->border = bd;



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to