This commit is contained in:
Nishi 2025-11-18 22:51:48 +09:00
commit 75fde75982
Signed by: nishi
GPG key ID: 27EF69B208EB9343
3 changed files with 21 additions and 6 deletions

View file

@ -22,9 +22,12 @@ void init_mail(void){
void check_mail(void){
struct stat s;
if(stat(mailpath, &s) == 0){
if(s.st_mtime > last){
printf("!\n");
s.st_mtime = 0;
if(stat(mailpath, &s) == 0 || last != 0){
if((s.st_mtime == 0 && last != 0) || s.st_mtime > last){
MwVaApply(image,
MwNpixmap, full,
NULL);
}
last = s.st_mtime;