summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-11-04 16:11:55 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-18 11:43:36 -0500
commitf3282a3748d40277ba17d0f9a981304624394c6d (patch)
tree60cad0d5bba3b51cf47fade279abd34ff6e57cb0
parentf856b20db5a678544cd578fb4d80afc2d878faf2 (diff)
Stop passing dimensions to _e_comp_wl_surface_state_init
The dimensions we passed were frequently wrong anyway, so let's stop doing that.
-rw-r--r--src/bin/e_comp_wl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 53f6df327..95318d47e 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -1234,7 +1234,7 @@ _e_comp_wl_surface_state_cb_buffer_destroy(struct wl_listener *listener, void *d
1234} 1234}
1235 1235
1236static void 1236static void
1237_e_comp_wl_surface_state_init(E_Comp_Wl_Surface_State *state, int w, int h) 1237_e_comp_wl_surface_state_init(E_Comp_Wl_Surface_State *state)
1238{ 1238{
1239 state->new_attach = EINA_FALSE; 1239 state->new_attach = EINA_FALSE;
1240 state->buffer = NULL; 1240 state->buffer = NULL;
@@ -2271,7 +2271,7 @@ _e_comp_wl_subsurface_create(E_Client *ec, E_Client *epc, uint32_t id, struct wl
2271 wl_resource_set_implementation(res, &_e_subsurface_interface, ec, 2271 wl_resource_set_implementation(res, &_e_subsurface_interface, ec,
2272 _e_comp_wl_subsurface_destroy); 2272 _e_comp_wl_subsurface_destroy);
2273 2273
2274 _e_comp_wl_surface_state_init(&sdata->cached, ec->w, ec->h); 2274 _e_comp_wl_surface_state_init(&sdata->cached);
2275 2275
2276 /* set subsurface data properties */ 2276 /* set subsurface data properties */
2277 sdata->resource = res; 2277 sdata->resource = res;
@@ -2397,8 +2397,7 @@ _e_comp_wl_client_cb_new(void *data EINA_UNUSED, E_Client *ec)
2397 } 2397 }
2398 2398
2399 wl_signal_init(&ec->comp_data->destroy_signal); 2399 wl_signal_init(&ec->comp_data->destroy_signal);
2400 2400 _e_comp_wl_surface_state_init(&ec->comp_data->pending);
2401 _e_comp_wl_surface_state_init(&ec->comp_data->pending, ec->w, ec->h);
2402 2401
2403 /* set initial client properties */ 2402 /* set initial client properties */
2404 ec->argb = EINA_TRUE; 2403 ec->argb = EINA_TRUE;