desktop-shell: Remove yet another center_on_output()

However many times you thought this might reasonably be called when
setting up for fullscreen, there were more.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2023-07-11 17:16:40 +01:00 committed by Marius Vlad
parent e32557131e
commit 77b9dbb730
1 changed files with 0 additions and 2 deletions

View File

@ -2323,8 +2323,6 @@ map(struct desktop_shell *shell, struct shell_surface *shsurf)
/* initial positioning, see also configure() */ /* initial positioning, see also configure() */
if (shsurf->state.fullscreen) { if (shsurf->state.fullscreen) {
weston_shell_utils_center_on_output(shsurf->view,
shsurf->fullscreen_output);
shell_set_view_fullscreen(shsurf); shell_set_view_fullscreen(shsurf);
} else if (shsurf->state.maximized) { } else if (shsurf->state.maximized) {
set_maximized_position(shell, shsurf); set_maximized_position(shell, shsurf);