Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.c 


Log Message:

flag the border for updating when removing a .desktop
when a desktop is updated, check borders w/o matches to see if they now have a 
match. there is no need to update borders that have a match other than 
event->previous, since the one they have is good enough

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.587
retrieving revision 1.588
diff -u -3 -r1.587 -r1.588
--- e_border.c  13 Apr 2007 01:47:56 -0000      1.587
+++ e_border.c  17 Apr 2007 03:07:16 -0000      1.588
@@ -4331,7 +4331,11 @@
 
              bd = l->data;
              if (bd->desktop == event->current)
-               bd->desktop = NULL;
+               {
+                  bd->desktop = NULL;
+                  bd->changes.icon = 1;
+                  bd->changed = 1;
+               }
           }
         break;
       case EFREET_DESKTOP_CHANGE_UPDATE:
@@ -4341,11 +4345,18 @@
              E_Border *bd;
 
              bd = l->data;
+
              if (bd->desktop == event->previous)
+               {
                   bd->desktop = event->current;
-             /* check all borders. the updated icon may now apply to them 
(e.g. adding a StartupWMClass) */
-             bd->changes.icon = 1;
-             bd->changed = 1;
+                  bd->changes.icon = 1;
+                  bd->changed = 1;
+               }
+             else if (bd->desktop == NULL)
+               {
+                  bd->changes.icon = 1;
+                  bd->changed = 1;
+               }
           }
         break;
      }



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to