Save ID of focused window

I changed a few things to save the ID of the last focused window.
dwm (http://git.suckless.org/dwm/) didn't focus correctly.
I don't know if you want those changes or if they're any good, but I opened a pull request anyway in case you do.
(I didn't test it with other window managers)