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:
committed by
Kristian Høgsberg
parent
f82b6cac5e
commit
d622ed3fbf
+4
-1
@@ -1829,11 +1829,14 @@ shell_configure_fullscreen(struct shell_surface *shsurf)
|
|||||||
output->width,
|
output->width,
|
||||||
output->height);
|
output->height);
|
||||||
break;
|
break;
|
||||||
} else
|
} else {
|
||||||
restore_output_mode(output);
|
restore_output_mode(output);
|
||||||
|
center_on_output(surface, output);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WL_SHELL_SURFACE_FULLSCREEN_METHOD_FILL:
|
case WL_SHELL_SURFACE_FULLSCREEN_METHOD_FILL:
|
||||||
|
center_on_output(surface, output);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user