summaryrefslogtreecommitdiff
path: root/src/xwidget.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-11-15 09:27:31 +0800
committerPo Lu <luangruo@yahoo.com>2021-11-15 09:27:31 +0800
commitd9e91da7690a7872a27d9fcb652a170d84e4d891 (patch)
tree78529f73f901e4700cc8f8a6ce9d472323b17fbb /src/xwidget.c
parent364cf2494c9b94e1d265b637394c80c4eecfb505 (diff)
downloademacs-d9e91da7690a7872a27d9fcb652a170d84e4d891.tar.gz
Stop assuming xwidget views will only be displayed in TEXT_AREA
* src/xterm.c (x_scroll_run): Use view->area when calculating xwidget view clipping. * src/xwidget.c (x_draw_xwidget_glyph_string): Set view->area to s->area and use that instead. * src/xwidget.h (struct xwidget_view): Add glyph row area field.
Diffstat (limited to 'src/xwidget.c')
-rw-r--r--src/xwidget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xwidget.c b/src/xwidget.c
index 0e8bf13715f..48927524320 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -1631,7 +1631,9 @@ x_draw_xwidget_glyph_string (struct glyph_string *s)
}
#endif
- window_box (s->w, TEXT_AREA, &text_area_x, &text_area_y,
+ xv->area = s->area;
+
+ window_box (s->w, xv->area, &text_area_x, &text_area_y,
&text_area_width, &text_area_height);
clip_left = max (0, text_area_x - x);