int32_t initial_up;
} popup;
+ struct weston_output *fullscreen_output;
struct weston_output *output;
struct wl_list link;
};
weston_surface_set_position(surface->surface,
surface->saved_x,
surface->saved_y);
- surface->surface->fullscreen_output = NULL;
+ surface->fullscreen_output = NULL;
break;
case SHELL_SURFACE_MAXIMIZED:
surface->output = get_default_output(surface->surface->compositor);
shsurf->saved_x = es->geometry.x;
shsurf->saved_y = es->geometry.y;
- es->fullscreen_output = output;
+ shsurf->fullscreen_output = output;
shsurf->type = SHELL_SURFACE_FULLSCREEN;
wl_resource_post_event(resource,
break;
case SHELL_SURFACE_SCREENSAVER:
case SHELL_SURFACE_FULLSCREEN:
- center_on_output(surface, surface->fullscreen_output);
+ center_on_output(surface, shsurf->fullscreen_output);
break;
case SHELL_SURFACE_MAXIMIZED:
/*use surface configure to set the geometry*/
switch (surface_type) {
case SHELL_SURFACE_SCREENSAVER:
case SHELL_SURFACE_FULLSCREEN:
- center_on_output(surface, surface->fullscreen_output);
+ center_on_output(surface, shsurf->fullscreen_output);
break;
case SHELL_SURFACE_MAXIMIZED:
/*setting x, y and using configure to change that geometry*/
surface->type = SHELL_SURFACE_SCREENSAVER;
- surface->surface->fullscreen_output = output;
+ surface->fullscreen_output = output;
surface->output = output;
wl_list_insert(shell->screensaver.surfaces.prev, &surface->link);
}