diff options
Diffstat (limited to 'src/window-xlib.c')
-rw-r--r-- | src/window-xlib.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/window-xlib.c b/src/window-xlib.c index 3182e31..a6c4f66 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -461,10 +461,12 @@ static void runes_window_backend_resize_window( } if (width != t->display.xpixel || height != t->display.ypixel) { - XResizeWindow(w->dpy, w->w, width - 4, height - 4); + int dwidth = width - 4, dheight = height - 4; + + XResizeWindow(w->dpy, w->w, dwidth, dheight); cairo_xlib_surface_set_size( - cairo_get_target(w->backend_cr), width - 4, height - 4); - runes_display_set_window_size(t); + cairo_get_target(w->backend_cr), dwidth, dheight); + runes_term_set_window_size(t, dwidth, dheight); runes_window_backend_clear_selection(t); } } |