Fix modality implementation in ModestShell window manager