windowmenu: Properly disconnect signal handler

Fixes: 185f793f
Related: #37
2 jobs for master in 3 minutes and 4 seconds (queued for 1 second)