Update & simplify window title generation

Signed-off-by: jessica <jessica@exobi.com>