better de-/activatng window with glow or not

fixes a minor nasty bug with de-/activating a window with or without
glow and with or without border