Fix quit/focus bug

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>