Some attributes might have been useful in the past, but not anymore.
Just remove since they are not been used anywhere.
struct
{
int w, h;
- } saved, server;
+ } saved;
struct
{
switch (win->buffer_type)
{
case ECORE_WL_WINDOW_BUFFER_TYPE_EGL_WINDOW:
- win->server.w = win->allocation.w;
- win->server.h = win->allocation.h;
break;
case ECORE_WL_WINDOW_BUFFER_TYPE_EGL_IMAGE:
case ECORE_WL_WINDOW_BUFFER_TYPE_SHM:
wl_surface_damage(win->surface, 0, 0,
win->allocation.w, win->allocation.h);
wl_surface_commit(win->surface);
-
- win->server.w = win->allocation.w;
- win->server.h = win->allocation.h;
}
break;
default:
if (wdata->win)
{
- Ecore_Wl_Window *win;
-
- win = wdata->win;
-
_ecore_evas_wayland_resize_edge_set(ee, ev->edges);
-
- win->server.w = win->allocation.w;
- win->server.h = win->allocation.h;
ecore_wl_window_update_size(wdata->win, ev->w, ev->h);
}
}
evas_object_resize(wdata->frame, w, h);
if (wdata->win)
- {
- Ecore_Wl_Window *win;
-
- win = wdata->win;
-
- win->server.w = win->allocation.w;
- win->server.h = win->allocation.h;
- ecore_wl_window_update_size(wdata->win, w, h);
- }
+ ecore_wl_window_update_size(wdata->win, w, h);
if (ee->func.fn_resize) ee->func.fn_resize(ee);
}
evas_object_resize(wdata->frame, w, h);
if (wdata->win)
- {
- Ecore_Wl_Window *win;
-
- win = wdata->win;
-
- win->server.w = win->allocation.w;
- win->server.h = win->allocation.h;
- ecore_wl_window_update_size(wdata->win, w, h);
- }
+ ecore_wl_window_update_size(wdata->win, w, h);
if (ee->func.fn_resize) ee->func.fn_resize(ee);
}