xdg-shell-v6: redesign the configure/ack_configure workflow

This commit is contained in:
emersion 2018-03-13 19:57:21 +01:00
parent 125138f1a0
commit e74ddaaf10
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 41 additions and 30 deletions

View file

@ -433,7 +433,8 @@ static void render_output(struct roots_output *output) {
float clear_color[] = {0.25f, 0.25f, 0.25f, 1.0f};
// Check if we can delegate the fullscreen surface to the output
if (output->fullscreen_view != NULL) {
if (output->fullscreen_view != NULL &&
output->fullscreen_view->wlr_surface != NULL) {
struct roots_view *view = output->fullscreen_view;
// Make sure the view is centered on screen

View file

@ -385,4 +385,11 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
view->close = close;
view->destroy = destroy;
roots_surface->view = view;
if (surface->toplevel_state->next.maximized) {
view_maximize(view, true);
}
if (surface->toplevel_state->next.fullscreen) {
view_set_fullscreen(view, true, NULL);
}
}