Clear window before redrawing
This commit is contained in:
parent
920c0d7c25
commit
b8e91b6164
1 changed files with 1 additions and 0 deletions
1
main.c
1
main.c
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue