fix regression with modified state being lost when switching windows.
shorten inactive windows to only the filename. resolves #35. also, treat inactive as a mode so it can be themed independently.