e_uuid_store: Write uuid as latest to avoid half-working states
authorStefan Schmidt <s.schmidt@samsung.com>
Wed, 16 Apr 2014 15:49:18 +0000 (17:49 +0200)
committerStefan Schmidt <s.schmidt@samsung.com>
Thu, 24 Apr 2014 09:03:53 +0000 (11:03 +0200)
src/bin/e_uuid_store.c

index 3103dbf..e5f65c2 100644 (file)
@@ -194,11 +194,11 @@ e_uuid_store_entry_update(uuid_t uuid, E_Client *ec)
      }
 
    /* We do not have this UUID in the table yet. Create it */
-   uuid_copy(table->entries[index].uuid, uuid);
    table->entries[index].x = ec->x;
    table->entries[index].y = ec->y;
    table->entries[index].width = ec->client.w;
    table->entries[index].heigth = ec->client.h;
+   uuid_copy(table->entries[index].uuid, uuid);
    table->entry_count++;
    uuid_unparse(table->entries[index].uuid, uuid_string);
    DBG("Created entry with UUID %s", uuid_string);