Clear window before redrawing

This commit is contained in:
Samuel Dudik 2020-07-30 12:41:37 +02:00
parent 920c0d7c25
commit b8e91b6164

1
main.c
View file

@ -68,6 +68,7 @@ int main(int argc, char *argv[])
if (event.type == Expose)
{
XClearWindow(display, window);
XftDrawString8(draw, &color, font, text_padding, height - text_padding, (XftChar8 *)argv[1], strlen(argv[1]));
}
if (event.type == ButtonPress)