make rendering much faster
[dana/dcompmgr.git] / dcompmgr.c
index a0a4694..d2cfc92 100644 (file)
@@ -132,8 +132,10 @@ event(d_display_t *dpy)
                 window_configure(w, cev->x, cev->y,
                                  cev->width, cev->height,
                                  cev->border_width);
-                if (window_is_mapped(w))
-                    sc->window_reconfigure(w);
+                if (window_is_mapped(w) &&
+                    (width != cev->width ||
+                     height != cev->height || bwidth != cev->border_width))
+                    sc->window_resize(w);
             }
             above = screen_find_window(sc, cev->above_sibling);
             screen_stacking_move_above(sc, w, above);
@@ -250,10 +252,12 @@ setup_functions(d_display_t *dpy)
 
     for (it = list_top(dpy->screens); it; it = it->next) {
         d_screen_t *sc = it->data;
+        int id;
         screen_setup_default_functions(sc);
 
         /* these can be plugins.. */
-        render_init(sc);
+        id = 1;
+        render_init(sc, id++);
     }
 }