unmaximize mdm theme emulator before setting resolution

small bugfix when changing resolution in maximized state.