[fixup] do not proceed with surface size checks if view not at top left corner - to save some cycles in handle_commit()

This commit is contained in:
Johan Malm 2025-11-25 20:43:49 +00:00
parent 859a4d799d
commit b8eca4c41e

View file

@ -298,7 +298,7 @@ handle_commit(struct wl_listener *listener, void *data)
* Centre fullscreen windows if smaller than output, for example Wine
* game SWAT4. See issue #2779
*/
if (view->fullscreen) {
if (view->fullscreen && !view->current.x && !view->current.y) {
if (surface_is_smaller_than_output(view, &size)) {
center_fullscreen_view(view, &size);
}