window: Fix notifications are immediately withdrawn
The previously used GtkEventControllerFocus::enter signal did also fire if the window was not in focus and the ui changed.
This patch also fixes two issues with notifications getting withdrawn multiple times.
Closes #237 (closed)