Michael Stapelberg: > Well, are you sure that the window even supports the WM_DELETE protocol? Yes it does (urxvt). > You can compare this with how i3 does it: > http://code.stapelberg.de/git/i3/tree/src/x.c?h=next#n261 Thanks, I'll try that.