Skip to content
Snippets Groups Projects
Commit b4187588 authored by Deucе's avatar Deucе :ok_hand_tone4:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2191 passed
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment