Commit 6e362a32 authored by Ari Roponen's avatar Ari Roponen Committed by Eli Zaretskii

Fix cairo scrolling for side-by-side windows

* src/xterm.c (x_scroll_run) [USE_CAIRO]: Fix scrolling for
side-by-side split windows.  (Bug#31288)
parent 91e582a3
......@@ -4260,6 +4260,7 @@ x_scroll_run (struct window *w, struct run *run)
#ifdef USE_CAIRO
int wx = WINDOW_LEFT_EDGE_X (w);
cairo_surface_t *s = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
width, height);
cairo_t *cr = cairo_create (s);
......@@ -4270,8 +4271,8 @@ x_scroll_run (struct window *w, struct run *run)
cairo_save (cr);
cairo_set_source_surface (cr, s, 0, to_y);
cairo_rectangle (cr, x, to_y, width, height);
cairo_set_source_surface (cr, s, wx, to_y);
cairo_rectangle (cr, wx, to_y, width, height);
cairo_fill (cr);
cairo_restore (cr);
cairo_surface_destroy (s);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment