shell: Center window in fullscreen if needed
If modeset fails With DRIVER method, and always with FILL method we want to center the window.
This commit is contained in:
parent
f82b6cac5e
commit
d622ed3fbf
@ -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…
Reference in New Issue
Block a user