diff options
author | Igor Böhm <igor@9lab.org> | 2022-01-04 19:11:07 +0000 |
---|---|---|
committer | Igor Böhm <igor@9lab.org> | 2022-01-04 19:11:07 +0000 |
commit | 47b7dc5ccd77bc247ab15cfab3a7a8f955771c70 (patch) | |
tree | 659c75b40c289523ac430ac90fa579749cab520d /sys/src/cmd/acme/rows.c | |
parent | 369cba5f938d3f804210b6e09d36c6f7ecb017fa (diff) |
acme: fix window and scrollbar display glitches at bottom fringe of column
The following patch fixes acme display glitches at the bottom fringe
of columns when adding/moving/resizing windows.
Here an example of an easy to reproduce case:
• https://invidio.xamh.de/watch?v=iLekQrxycaM
…opening acme and resizing a column to the right is all that is needed.
The functions winresize(…) and textresize(…) are extended with an
additional parameter `fillfringe` to indicate if a window/tag shall
fill a potential fringe area that would otherwise remain white.
The changes have been inspired by the approach taken in plan9port
acme.
Diffstat (limited to 'sys/src/cmd/acme/rows.c')
-rw-r--r-- | sys/src/cmd/acme/rows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/acme/rows.c b/sys/src/cmd/acme/rows.c index f26327072..d3d4817a0 100644 --- a/sys/src/cmd/acme/rows.c +++ b/sys/src/cmd/acme/rows.c @@ -102,7 +102,7 @@ rowresize(Row *row, Rectangle r) row->r = r; r1 = r; r1.max.y = r1.min.y + font->height; - textresize(&row->tag, r1); + textresize(&row->tag, r1, TRUE); r1.min.y = r1.max.y; r1.max.y += Border; draw(screen, r1, display->black, nil, ZP); |