Fix the bug of livebox_get_pdsize function.
[platform/framework/web/livebox-viewer.git] / src / client.c
index db76c06..79fca92 100644 (file)
@@ -488,6 +488,13 @@ static struct packet *master_size_changed(pid_t pid, int handle, const struct pa
                        DbgPrint("Livebox size is updated (%dx%d)\n", w, h);
                        lb_set_size(handler, w, h);
 
+                       /*!
+                        * If there is a created LB FB, 
+                        * Update it too
+                        */
+                       if (lb_get_lb_fb(handler))
+                               lb_set_lb_fb(handler, id);
+
                        if (handler->size_changed_cb) {
                                DbgPrint("Call the size changed callback\n");
                                handler->size_changed_cb(handler, status, handler->size_cbdata);
@@ -733,6 +740,7 @@ static struct packet *master_created(pid_t pid, int handle, const struct packet
 
        handler->pd.type = pd_type;
        lb_set_pdsize(handler, pd_w, pd_h);
+       lb_set_default_pdsize(handler, pd_w, pd_h);
        switch (pd_type) {
        case _PD_TYPE_SCRIPT:
        case _PD_TYPE_BUFFER: