Handle WM_DELETE_WINDOW messages correctly, thanks to fungt

This commit is contained in:
Bert
2011-02-09 10:01:49 +01:00
parent a5335e8ddd
commit d731741f04
3 changed files with 11 additions and 1 deletions

4
main.c
View File

@ -475,6 +475,10 @@ void run() {
timeout = 1;
}
break;
case ClientMessage:
if ((Atom) ev.xclient.data.l[0] == wm_delete_win)
return;
break;
}
}
}