Resize the canvas at the end of canvas init

Summary:
wl_drm sets up a resize callback, so if the resize occurs before zone setup
wl_drm's call to e_comp_canvas_update will setup extra zones (breaking the
wizard).

Reviewers: zmike, devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2567

 #butts
This commit is contained in:
Derek Foreman 2015-05-22 12:24:07 -04:00 committed by Mike Blumenkrantz
parent e70fcc565d
commit 6ba90335e2
1 changed files with 2 additions and 1 deletions

View File

@ -187,7 +187,6 @@ e_comp_canvas_init(int w, int h)
e_comp->evas = ecore_evas_get(e_comp->ee);
e_comp->w = w;
e_comp->h = h;
ecore_evas_resize(e_comp->ee, w, h);
if (e_first_frame)
evas_event_callback_add(e_comp->evas, EVAS_CALLBACK_RENDER_POST, _e_comp_canvas_cb_first_frame, NULL);
@ -234,6 +233,8 @@ e_comp_canvas_init(int w, int h)
E_LIST_HANDLER_APPEND(handlers, E_EVENT_SCREENSAVER_ON, _e_comp_cb_screensaver_on, NULL);
E_LIST_HANDLER_APPEND(handlers, E_EVENT_SCREENSAVER_OFF, _e_comp_cb_screensaver_off, NULL);
ecore_evas_resize(e_comp->ee, w, h);
return EINA_TRUE;
}