mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
Merge branch 'master' into swaybar_tray_last
This commit is contained in:
commit
0e919a7e8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue