Index: DirectFB-1.0.0-rc4/src/core/layer_region.c
===================================================================
--- DirectFB-1.0.0-rc4.orig/src/core/layer_region.c	2007-02-07 12:01:49.592103000 +0000
+++ DirectFB-1.0.0-rc4/src/core/layer_region.c	2007-02-07 12:04:10.616952000 +0000
@@ -653,7 +653,7 @@
      }
 
      /* Propagate new configuration to the driver if the region is realized. */
-     if (D_FLAGS_IS_SET( region->state, CLRSF_REALIZED )) {
+     if (D_FLAGS_IS_SET( region->state, CLRSF_REALIZED | CLRSF_CONFIGURED)) {
           ret = set_region( region, &new_config, flags, region->surface );
           if (ret) {
                dfb_layer_region_unlock( region );
@@ -811,7 +811,7 @@
      D_ASSERT( config != NULL );
      D_ASSERT( config->buffermode != DLBM_WINDOWS );
 
-     D_ASSERT( D_FLAGS_IS_SET( region->state, CLRSF_REALIZED ) );
+     D_ASSERT( D_FLAGS_IS_SET( region->state, CLRSF_REALIZED | CLRSF_CONFIGURED) );
 
      layer = dfb_layer_at( region->context->layer_id );
 
