diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-05-07 17:56:22 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-05-07 17:56:22 -0400 |
commit | c1af3c6dc560c60a82440d5119c9565dafaafe1e (patch) | |
tree | 7831709cf4c002597ba3ad31a83229e3aaa86523 /src/window-xlib.c | |
parent | 5cfc4dd06e0fabedacff605667932ae7f0a2a278 (diff) | |
download | runes-c1af3c6dc560c60a82440d5119c9565dafaafe1e.tar.gz runes-c1af3c6dc560c60a82440d5119c9565dafaafe1e.zip |
split up some unnecessary cross-module dependencies
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); } } |