shell: Center window in fullscreen if needed

If modeset fails With DRIVER method, and always with FILL method
we want to center the window.
Alexander Larsson 11 years ago committed by Kristian Høgsberg
parent f82b6cac5e
commit d622ed3fbf
  1. 5
      src/shell.c

@ -1829,11 +1829,14 @@ shell_configure_fullscreen(struct shell_surface *shsurf)
output->width,
output->height);
break;
} else
} else {
restore_output_mode(output);
center_on_output(surface, output);
}
}
break;
case WL_SHELL_SURFACE_FULLSCREEN_METHOD_FILL:
center_on_output(surface, output);
break;
default:
break;

Loading…
Cancel
Save