and clever borders are back
authorCarsten Haitzler <raster@rasterman.com>
Sun, 8 Oct 2006 13:38:42 +0000 (13:38 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Sun, 8 Oct 2006 13:38:42 +0000 (13:38 +0000)
SVN revision: 26425

src/bin/e_apps.c

index 51edb3e..3220548 100644 (file)
@@ -1767,6 +1767,24 @@ printf(".");
 //        if (desktop->categories)  a->categories = evas_stringshare_add(desktop->categories);
          }
      }
+#if CLEVER_BORDERS
+   if (a->filled)
+     {
+        double begin, time;
+
+        begin = ecore_time_get();
+
+        if ((a->path) && (a->win_class))   _e_apps_border_setup(&_e_apps_border_ng_win_class, &_e_apps_border_g_win_class, a->win_class, a->path, 'c');
+        if ((a->path) && (a->win_name))    _e_apps_border_setup(&_e_apps_border_ng_win_name,  &_e_apps_border_g_win_name,  a->win_name,  a->path, 'n');
+        if ((a->path) && (a->win_title))   _e_apps_border_setup(&_e_apps_border_ng_win_title, &_e_apps_border_g_win_title, a->win_title, a->path, 't');
+        if ((a->path) && (a->win_role))    _e_apps_border_setup(&_e_apps_border_ng_win_role,  &_e_apps_border_g_win_role,  a->win_role,  a->path, 'r');
+        if ((a->path) && (a->exe))         _e_apps_border_setup(&_e_apps_border_ng_exe, NULL, a->exe, a->path, 'e');
+
+        time = ecore_time_get() - begin;
+        border_setup_count++;
+        border_setup_time += time;
+     }
+#endif
 }
 
 static char *