[ui] Propagate motion modifications for views

With this, the status bar now stays in the correct location as the
window is resized. Rather nice that it was just a simple omission.
This commit is contained in:
Bill Currie 2022-11-01 10:15:23 +09:00
parent 81e23b2e52
commit 036afba23d
2 changed files with 2 additions and 3 deletions

View file

@ -189,9 +189,10 @@ View_UpdateHierarchy (view_t view)
if (cont[i].resize_y) {
len[i].y += dy;
}
modified[i] |= 2;
modified[i] |= 2; // propogate resize modifications
}
if (modified[i] || modified[par]) {
modified[i] |= 1; // propogate motion modifications
switch (cont[i].gravity) {
case grav_center:
rel[i].x = pos[i].x + (len[par].x - len[i].x) / 2;

View file

@ -1521,8 +1521,6 @@ init_sbar_views (void)
sbar_tile[0] = sbar_view ( 0, 0, 0, 48, grav_southwest, sbar_main);
sbar_tile[1] = sbar_view ( 0, 0, 0, 48, grav_southeast, sbar_main);
View_SetResize (sbar_main, 1, 1);
for (int i = 0; i < 4; i++) {
sbar_view (i * 8, 0, 8, 16, grav_northwest, sbar_sigils);