Clear window before redrawing

master
Samuel Dudik 2020-07-30 12:41:37 +02:00
parent 920c0d7c25
commit b8e91b6164
1 changed files with 1 additions and 0 deletions

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)