Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit b4187588 authored by Deucе's avatar Deucе 👌🏾
Browse files

Clear the entire window when the xim size is potentially changed.

This fixes issues where "leftovers" from the previous mode would
remain in a new screen mode.
parent 49756aa7
Pipeline #2191 passed with stage
in 7 minutes and 31 seconds
......@@ -216,6 +216,7 @@ static void resize_xim(void)
if (xim) {
if (width == xim->width
&& height == xim->height) {
x11.XFillRectangle(dpy, win, gc, 0, 0, x11_window_width, x11_window_height);
return;
}
#ifdef XDestroyImage
......@@ -230,6 +231,7 @@ static void resize_xim(void)
}
xim = x11.XCreateImage(dpy, &visual, depth, ZPixmap, 0, NULL, width, height, 32, 0);
xim->data=(char *)calloc(1, xim->bytes_per_line*xim->height);
x11.XFillRectangle(dpy, win, gc, 0, 0, x11_window_width, x11_window_height);
}
/* Swiped from FreeBSD libc */
......
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