Merge branch 'master' into swaybar_tray_last

This commit is contained in:
lavoiecsh 2026-03-29 17:07:38 -04:00 committed by GitHub
commit 0e919a7e8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -988,7 +988,7 @@ void view_center_and_clip_surface(struct sway_view *view) {
bool clip_to_geometry = true; bool clip_to_geometry = true;
if (container_is_floating(con)) { if (container_is_floating(con) || con->pending.fullscreen_mode != FULLSCREEN_NONE) {
// We always center the current coordinates rather than the next, as the // We always center the current coordinates rather than the next, as the
// geometry immediately affects the currently active rendering. // geometry immediately affects the currently active rendering.
int x = (int) fmax(0, (con->current.content_width - view->geometry.width) / 2); int x = (int) fmax(0, (con->current.content_width - view->geometry.width) / 2);